chiark / gitweb /
Bugfix in mac example copy.
authordaid303 <daid303@gmail.com>
Mon, 29 Oct 2012 09:19:30 +0000 (10:19 +0100)
committerdaid303 <daid303@gmail.com>
Mon, 29 Oct 2012 09:19:30 +0000 (10:19 +0100)
Cura/gui/mainWindow.py

index f4a6b8fe76561f05978f463b3b4b60f5f51e691d..b9203b40e22eeb8e0c8a4fce5a50c76fb3f27c9a 100644 (file)
@@ -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':