[REBOL] Re: Jell Project
From: anton:wilddsl:au at: 28-Apr-2006 13:26
Hi Alessandro, here's a small tip:
Your code:
; ONLY FOR WINDOWS ENVIRONMENT...
; and for Linux? Please help me!
replace/all system/options/args/1 "\" "/"
replace/all system/options/args/1 ":" ""
jellapFilenameStr: join "/" system/options/args/1
jellapFilename: to-file jellapFilenameStr
becomes
jellapFilename: to-rebol-file system/options/args/1
Which should work equally well on windows and linux.
Note also TO-LOCAL-FILE does the opposite, converting a rebol
file into the host filesystem's format.
Regards,
Anton.