import threading
import traceback
import platform
+import sys
from Cura.util import profile
if os.path.exists('C:/Software/Cura_SteamEngine/_bin/Release/Cura_SteamEngine.exe'):
return 'C:/Software/Cura_SteamEngine/_bin/Release/Cura_SteamEngine.exe'
return os.path.abspath(os.path.join(os.path.dirname(__file__), '../..', 'SteamEngine.exe'))
+ if hasattr(sys, 'frozen'):
+ return os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../../..', 'SteamEngine'))
return os.path.abspath(os.path.join(os.path.dirname(__file__), '../..', 'SteamEngine'))
def getTempFilename():
def cleanup(self):
self.abortSlicer()
- os.remove(self._binaryStorageFilename)
- os.remove(self._exportFilename)
+ try:
+ os.remove(self._binaryStorageFilename)
+ except:
+ pass
+ try:
+ os.remove(self._exportFilename)
+ except:
+ pass
def abortSlicer(self):
if self._process is not None:
##Do we need to create the final archive
ARCHIVE_FOR_DISTRIBUTION=1
##Which version name are we appending to the final archive
-BUILD_NAME=13.03
+BUILD_NAME=13.04-SteamEngine
TARGET_DIR=Cura-${BUILD_NAME}-${BUILD_TARGET}
##Which versions of external programs to use
exit 1
fi
- downloadURL https://bitbucket.org/pypy/pypy/downloads/pypy-${PYPY_VERSION}-osx64.tar.bz2
- $TAR -xjf pypy-${PYPY_VERSION}-osx64.tar.bz2
- mv pypy-${PYPY_VERSION} scripts/darwin/dist/Cura.app/Contents/Resources/pypy
- #For now, just copy all of Cura so pypy can find it
- cp -a Cura scripts/darwin/dist/Cura.app/Contents/Resources/
-
#Add cura version file (should read the version from the bundle with pyobjc, but will figure that out later)
echo $BUILD_NAME > scripts/darwin/dist/Cura.app/Contents/Resources/version
+ cp SteamEngine scripts/darwin/dist/Cura.app/Contents/Resources/SteamEngine
cd scripts/darwin