Commit 85cee219 authored by Till Bald's avatar Till Bald

[FIX] crosslinx executable

parent 771d05d9
......@@ -29,9 +29,13 @@ class ProteomaticScript(object):
def __init__(self, commands = copy(sys.argv)):
scriptDir,scriptFilename = os.path.split(commands.pop(0))
# scriptDir is a relative path, but we need an absolute path
# in the current structure, this file is in two folders,
# so we need to get back to the directory of crosslinx.py by ../..
scriptDir = os.path.normpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../.."))
if getattr(sys, 'frozen', False):
# we have a crosslinx executable created by pyinstaller
current_file_path = sys._MEIPASS
else:
# in the current structure, this file is in two folders above,
# so we need to get back to the directory of crosslinx.py by ../..
scriptDir = os.path.normpath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../.."))
pathToRuby = "ruby"
# detect the OS to decide on which ruby to use
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment