chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d94cd0c
)
copy the cura examples from the proper location.
author
Daid
<Daid303@gmail.com>
Mon, 24 Dec 2012 11:10:35 +0000
(12:10 +0100)
committer
Daid
<Daid303@gmail.com>
Mon, 24 Dec 2012 11:10:35 +0000
(12:10 +0100)
Cura/gui/app.py
patch
|
blob
|
history
diff --git
a/Cura/gui/app.py
b/Cura/gui/app.py
index 598d8c959162c62e83c54d52a45b5ecbd9d596b1..6bb9db6ff00ebb43b7df20d0a2555ebfa2b79eeb 100644
(file)
--- a/
Cura/gui/app.py
+++ b/
Cura/gui/app.py
@@
-11,6
+11,7
@@
import warnings
import wx._core
from Cura.util import profile
import wx._core
from Cura.util import profile
+from Cura.util import resources
class CuraApp(wx.App):
def __init__(self):
class CuraApp(wx.App):
def __init__(self):
@@
-50,7
+51,7
@@
class CuraApp(wx.App):
os.makedirs(os.path.dirname(exampleFile))
except:
pass
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()
shutil.copy(filename, os.path.join(os.path.dirname(exampleFile), os.path.basename(filename)))
profile.putPreference('lastFile', exampleFile)
configWizard.configWizard()