K
kj
How can a script know its absolute path? (__file__ only gives the
path it was used to invoke the script.)
Basically, I'm looking for the Python equivalent of Perl's FindBin.
The point of all this is to make the scripts location the reference
point for the location of other files, as part of a self-contained
distribution.
TIA!
Kynn
path it was used to invoke the script.)
Basically, I'm looking for the Python equivalent of Perl's FindBin.
The point of all this is to make the scripts location the reference
point for the location of other files, as part of a self-contained
distribution.
TIA!
Kynn