- currentPath = os.path.realpath(os.path.dirname(os.path.abspath(__file__)))
- proc = subprocess.Popen(['./.salome_run'] + args,
- close_fds=True, cwd=currentPath)
+ appliPath = os.path.dirname(os.path.realpath(__file__))
+ proc = subprocess.Popen([os.path.join(appliPath, '.salome_run')] + args, close_fds=True)