Sigh, Nevermind, when I looked at sys.path in an actual program the first element was actually the path to the script, not '' (got '' from the command line execution of python).
Jerry On May 24, 2006, at 3:39 PM, Jerry LeVan wrote: > Hi, > > I am porting one of my Tcl/Tk apps to Python and am having > a bit of a problem with one detail. > > The structure of the app is that the main program > sits in a folder and local resources live in a > subFolder named Resources. > > I can easily pick up modules living in Resources, but > I can't see how to find pure "data" files living in the > the Resources folder. > > In Tcl I can find the path to a script with the info command. > > I tried looking at "sys.path" but the "current directory" seems > to be specified by '' ( instead of the the full path name). > > Is there anyway I can discover the pathname of an running > python script? > > Thanks, > > Jerry _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig