[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Get Scriptname Without the Path
- From: matias.guijarro@...
- Date: Thu, 03 Apr 2008 10:14:29 +0200
Hello :-)
steve donovan wrote:
>The point is that there is no single pattern that can match both Windows
>and Unix style paths. I discover what OS I'm on by looking for Windows
>specific environment variables, and adjust the pattern accordingly.
>
>steve d.
>
In order to know what is the directory separator
character, I use that :
os.pathsep = package.config:sub(1,1)
Cheers,
Matias.