From: daid303 Date: Mon, 29 Oct 2012 09:19:30 +0000 (+0100) Subject: Bugfix in mac example copy. X-Git-Tag: 13.03~226 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=79e24189ed8581bb1978a31f74d76fb9c6177bfa;p=cura.git Bugfix in mac example copy. --- diff --git a/Cura/gui/mainWindow.py b/Cura/gui/mainWindow.py index f4a6b8fe..b9203b40 100644 --- a/Cura/gui/mainWindow.py +++ b/Cura/gui/mainWindow.py @@ -30,13 +30,13 @@ def main(): if platform.system() == "Darwin": #Check if we need to copy our examples exampleFile = os.path.expanduser('~/CuraExamples/UltimakerRobot_support.stl') - if not os.path.isfile(examplePath): + if not os.path.isfile(exampleFile): try: - os.makedirs(os.path.dirname(examplePath)) + 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'))): - shutil.copy(filename, os.path.join(os.path.dirname(examplePath), os.basename(filename))) + shutil.copy(filename, os.path.join(os.path.dirname(exampleFile), os.basename(filename))) profile.putPreference('lastFile', exampleFile) configWizard.configWizard() if profile.getPreference('startMode') == 'Simple':