chiark / gitweb /
Added python path needed to run slicer
authorsmorloc <smorloc@gmail.com>
Wed, 16 Jan 2013 02:29:20 +0000 (21:29 -0500)
committersmorloc <smorloc@gmail.com>
Wed, 16 Jan 2013 02:29:20 +0000 (21:29 -0500)
Cura/slice/__main__.py

index 15eee89172067f16f5af0f753d397dd5bf786bfd..573920bd1e4edd68a12fc220183aacb81356081f 100644 (file)
@@ -5,6 +5,11 @@ import sys
 import re
 import os
 
+if not hasattr(sys, 'frozen'):
+       cura_sf_path = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "./cura_sf/"))
+       if cura_sf_path not in sys.path:
+               sys.path.append(cura_sf_path)
+
 from Cura.util import profile
 from Cura.slice.cura_sf.skeinforge_application.skeinforge_plugins.craft_plugins import export