Seaside for 3.9 Kernel Image
Bert Freudenberg
bert at impara.de
Thu Jul 20 13:05:11 UTC 2006
That wouldn't work on Mac OS, where a relative path *starts* with the
directory separator:
':tests:SUnit.st'.
You'ld have to write
(FileDirectory default directoryNamed: 'tests') readOnlyFileNamed:
'SUnit.st'
to make that work reliable. And to make it more legible:
self testsDirectory readOnlyFileNamed: 'SUnit.st'
Lately we use Michael's "Network-URI" package for file name handling,
much easier to get right cross-platform:
'tests/SUnit.st' asURI contentStream
- Bert -
Am 20.07.2006 um 14:12 schrieb Tansel:
> Just change 'tests/SUnit.st' to
>
> 'tests', FileDirectory slash, 'SUnit.st'
>
> In filenames '/' is Unix/Linux/OS-X specific and not portable
>
>>
> b) [(FileStream readOnlyFileNamed:'tests/SUnit.st')fileIn]on:Error
> do:[:ex|^ex]
>
> ======>
>
>> FileDoesNotExistsException: '...blabla\7045\tests#SUnit.st'
More information about the Squeak-dev
mailing list
|