return os.path.abspath(os.path.join(os.path.dirname(__file__), '../..', 'CuraEngine.exe'))
if hasattr(sys, 'frozen'):
return os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../../..', 'CuraEngine'))
return os.path.abspath(os.path.join(os.path.dirname(__file__), '../..', 'CuraEngine.exe'))
if hasattr(sys, 'frozen'):
return os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../../..', 'CuraEngine'))