Message1195
An example of problems caused by this issue is http://wiki.python.org/jython/JythonMonthly/Articles/January2007/1 where missing os.path.sep requires following patch. (Changing os.path.sep to os.sep would've probably been a better solution in this case because os.name is 'java' in Jython.)
####################
debugerror.py:
16a17
> from utils import fdict
20c21,27
< whereami = os.path.sep.join(whereami.split(os.path.sep)[:-1])
---
> #whereami = os.path.sep.join(whereami.split(os.path.sep)[:-1])
> #sep attribute doesn't seem to exist in jython, hence:
> if os.name == 'nt':
> whereami = '\\'.join(whereami.split('\\')[:-1])
> else:
> whereami = '/'.join(whereami.split('/')[:-1])
> |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:32 | admin | link | issue1534547 messages |
2008-02-20 17:17:32 | admin | create | |
|