If the filename contains spaces a backtrace is generated.
Example filename: /home/silfreed/tmp/10-sep-07 - walk.gpx
Backtrace:
GPX: Cannot open file '/home/silfreed/tmp/10-sep-07'!
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/pytrainer/gui/windowrecord.py", line 197, in on_calculatevalues_clicked
self.parent.actualize_fromgpx(gpxfile)
File "/usr/lib/python2.5/site-packages/pytrainer/record.py", line 181, in actualize_fromgpx
gpx = Gpx(self.data_path,gpxfile)
File "/usr/lib/python2.5/site-packages/pytrainer/lib/gpx.py", line 36, in __init__
self._getValues(pytrainerfile)
File "/usr/lib/python2.5/site-packages/pytrainer/lib/gpx.py", line 71, in _getValues
fh = open(pytrainerfile)
IOError: [Errno 2] No such file or directory: '/tmp/virtual_dir/gps.txt'