ggazzo / opennero

Automatically exported from code.google.com/p/opennero
Other
0 stars 0 forks source link

Windows XP SP3 Python 2.7 - save_team fails due to badly formed file name (also load_team) #113

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run Nero in training mode and save team
2. The console window shows the error: the file name has a relative path ..\..\ 
tacked in front of the absolute path: c:\openNERO etc

To fix the problem I commented out module.py line 157, save_team:
#location = os.path.relpath("/") + location # commented out to fix bug in 
Windows

same in load_team

This works only in Windows. A general fix might be to ensure that the location 
is in relative form itself by applying os.path.relpath to it before 
concatenating. 

It appears that there's some assumption about the current directory and the 
path provided that doesn't work in Windows python.

What version of the product are you using? On what operating system?
OpenNERO 2011.12.02
Windows XP SP3 Python 2.7

Original issue reported on code.google.com by nealemor...@gmail.com on 3 Dec 2011 at 6:20

GoogleCodeExporter commented 9 years ago
r1522 fixes this issue - please verify if this works for you

Original comment by ikarpov on 3 Dec 2011 at 8:47