From: Daid Date: Mon, 24 Dec 2012 11:10:35 +0000 (+0100) Subject: copy the cura examples from the proper location. X-Git-Tag: 13.03~140 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=159277a2e86bf998de1213cc0c75e5761d56ce20;p=cura.git copy the cura examples from the proper location. --- diff --git a/Cura/gui/app.py b/Cura/gui/app.py index 598d8c95..6bb9db6f 100644 --- a/Cura/gui/app.py +++ b/Cura/gui/app.py @@ -11,6 +11,7 @@ import warnings import wx._core from Cura.util import profile +from Cura.util import resources class CuraApp(wx.App): def __init__(self): @@ -50,7 +51,7 @@ class CuraApp(wx.App): os.makedirs(os.path.dirname(exampleFile)) except: pass - for filename in glob.glob(os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'example', '*.*'))): + for filename in glob.glob(os.path.normpath(os.path.join(resources.resourceBasePath, 'example', '*.*'))): shutil.copy(filename, os.path.join(os.path.dirname(exampleFile), os.path.basename(filename))) profile.putPreference('lastFile', exampleFile) configWizard.configWizard()