Message4816

Author Christof
Recipients Christof
Date 2009-06-16.19:49:18
SpamBayes Score 2.7801496e-08
Marked as misclassified No
Message-id <1245181758.91.0.33079548792.issue1379@psf.upfronthosting.co.za>
In-reply-to
Content
I try to put a subdirectory relative to a given script on sys.path and
therefore need os.path.dirname(__file__). Filename e.g. is test.py and
it is on c:\temp:

import os
print __file__, os.path.dirname(__file__)

Python:
c:\temp\test.py c:\temp

Jython 2.5final:
test.py

So only the filename and therefor no possibility to add e.g. a libs dir
relative to this script to sys.path.

Guess this is known but could not find any hint to this problem and
possible workaround or if there is hope for Jython 2.5.1?

thanks
History
Date User Action Args
2009-06-16 19:49:19Christofsetrecipients: + Christof
2009-06-16 19:49:18Christofsetmessageid: <1245181758.91.0.33079548792.issue1379@psf.upfronthosting.co.za>
2009-06-16 19:49:18Christoflinkissue1379 messages
2009-06-16 19:49:18Christofcreate