Message4816
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 |
|
Date |
User |
Action |
Args |
2009-06-16 19:49:19 | Christof | set | recipients:
+ Christof |
2009-06-16 19:49:18 | Christof | set | messageid: <1245181758.91.0.33079548792.issue1379@psf.upfronthosting.co.za> |
2009-06-16 19:49:18 | Christof | link | issue1379 messages |
2009-06-16 19:49:18 | Christof | create | |
|