← Back to team overview

gladex team mailing list archive

[Bug 316691] [NEW] Wrong path is passed to internal methods

 

Public bug reported:

Hello!

This occurs when trying to run the generated code from within the
directory of the generated files:

setas@work:~/dev.testing/Sync&Run$ python SyncRun_RemoteBT.py 
Traceback (most recent call last):
  File "SyncRun_RemoteBT.py", line 11, in <module>
    compile(os.path.split(__file__)[0]+"/"+"SyncRun_RemoteBT_callbacks.py")
  File "/usr/lib/python2.5/py_compile.py", line 115, in compile
    f = open(file, 'U')
IOError: [Errno 2] No such file or directory: '/SyncRun_RemoteBT_callbacks.py'


My suggestion is to check for the value of os.path.split(__file__)[0] (in case is "").

Cheers

** Affects: gladex
     Importance: Undecided
         Status: New

-- 
Wrong path is passed to internal methods
https://bugs.launchpad.net/bugs/316691
You received this bug notification because you are a member of Gladex
Developers, which is subscribed to Gladex.



Follow ups

References