lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.