Linux application deployment
Jeffrey Froman
jeffrey at fro.man
Sun Sep 5 12:06:44 EDT 2004
More information about the Python-list mailing list
Sun Sep 5 12:06:44 EDT 2004
- Previous message (by thread): Problem with 2.4(alpha3)
- Next message (by thread): Linux application deployment
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Robert M. Emmons wrote: > One thing I've always wonders was -- Is there a way for a python module > to tell where it's file is located??? If you could do this it might > also be possible to have a python script reset sys.path based on it's > own location. > One way of doing this is: import os, sys directory, filename = os.path.split(__file__) sys.path.append(directory) ------- Jeffrey
- Previous message (by thread): Problem with 2.4(alpha3)
- Next message (by thread): Linux application deployment
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list