Message1195

Author pekka.klarck
Recipients
Date 2007-01-22.17:09:47
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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]) 
> 
History
Date User Action Args
2008-02-20 17:17:32adminlinkissue1534547 messages
2008-02-20 17:17:32admincreate