From: smorloc Date: Wed, 16 Jan 2013 02:29:20 +0000 (-0500) Subject: Added python path needed to run slicer X-Git-Tag: 13.03~101^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7b092a42c79a01f62dac812ed99c52f78661eb33;p=cura.git Added python path needed to run slicer --- diff --git a/Cura/slice/__main__.py b/Cura/slice/__main__.py index 15eee891..573920bd 100644 --- a/Cura/slice/__main__.py +++ b/Cura/slice/__main__.py @@ -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