On 2011-07-25 at 18:35:24 +0200, Ulrike Fischer wrote:
> if string.find(os.getenv("PATH"),";") then
> io.fileseparator, io.pathseparator = "\\", ";"
> else
> io.fileseparator, io.pathseparator = "/" , ":"
> end
BTW, it's not advisable to rely on assumptions. A better test is
if os.type == "windows" then ....
Regards,
Reinhard
--
----------------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover mailto:[email protected]
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------