Graham Dumpleton
grahamd at dscpl.com.au
Thu Jun 30 18:05:28 EDT 2005
On 30/06/2005, at 10:39 PM, GNULife wrote: > I have a test.py in d:\temp , I want to know where's test.py when I run > it. I have tried to join "os.getcwd()" into test.py , but it return > "C:\\Program Files\\Apache Group\\Apache2". How to do it? import os directory = os.path.dirname(__file__)
|