11 Dec
2010
11 Dec
'10
5:32 p.m.
Hi,
when I have a script that starts with the line
#!/usr/bin/env texlua
I have on my Mac OS X system the full path to my script in arg[0]. Is this portable? That is, if I run this under windows/solaris/... will I always find out where this script is located?
Or other question: is there a more-or-less portable way to find out the location of a script from inside the script? I'd like to set up package.path to a relative directory such as:
package.path = ....