chiark / gitweb /
Move resources and plugins out of the Cura python package.
authordaid <daid303@gmail.com>
Wed, 12 Feb 2014 11:58:18 +0000 (12:58 +0100)
committerdaid <daid303@gmail.com>
Wed, 12 Feb 2014 11:58:18 +0000 (12:58 +0100)
90 files changed:
Cura/util/profile.py
Cura/util/resources.py
plugins/TweakAtZ.py [moved from Cura/plugins/TweakAtZ.py with 100% similarity]
plugins/pauseAtZ.py [moved from Cura/plugins/pauseAtZ.py with 100% similarity]
resources/Attribution.txt [moved from Cura/resources/Attribution.txt with 100% similarity]
resources/Cura.icns [moved from Cura/resources/Cura.icns with 100% similarity]
resources/cura.ico [moved from Cura/resources/cura.ico with 100% similarity]
resources/example/Attribution.txt [moved from Cura/resources/example/Attribution.txt with 100% similarity]
resources/example/UltimakerHandle.stl [moved from Cura/resources/example/UltimakerHandle.stl with 100% similarity]
resources/example/UltimakerRobot_support.stl [moved from Cura/resources/example/UltimakerRobot_support.stl with 100% similarity]
resources/firmware/Attribution.txt [moved from Cura/resources/firmware/Attribution.txt with 100% similarity]
resources/firmware/MarlinUltimaker-115200-dual.hex [moved from Cura/resources/firmware/MarlinUltimaker-115200-dual.hex with 100% similarity]
resources/firmware/MarlinUltimaker-115200.hex [moved from Cura/resources/firmware/MarlinUltimaker-115200.hex with 100% similarity]
resources/firmware/MarlinUltimaker-250000-dual.hex [moved from Cura/resources/firmware/MarlinUltimaker-250000-dual.hex with 100% similarity]
resources/firmware/MarlinUltimaker-250000.hex [moved from Cura/resources/firmware/MarlinUltimaker-250000.hex with 100% similarity]
resources/firmware/MarlinUltimaker-COPYING [moved from Cura/resources/firmware/MarlinUltimaker-COPYING with 100% similarity]
resources/firmware/MarlinUltimaker2.hex [moved from Cura/resources/firmware/MarlinUltimaker2.hex with 100% similarity]
resources/images/Ultimaker2backplate.png [moved from Cura/resources/images/Ultimaker2backplate.png with 100% similarity]
resources/images/UltimakerRobot.png [moved from Cura/resources/images/UltimakerRobot.png with 100% similarity]
resources/images/attention.png [moved from Cura/resources/images/attention.png with 100% similarity]
resources/images/busy-0.png [moved from Cura/resources/images/busy-0.png with 100% similarity]
resources/images/busy-1.png [moved from Cura/resources/images/busy-1.png with 100% similarity]
resources/images/busy-2.png [moved from Cura/resources/images/busy-2.png with 100% similarity]
resources/images/busy-3.png [moved from Cura/resources/images/busy-3.png with 100% similarity]
resources/images/c.png [moved from Cura/resources/images/c.png with 100% similarity]
resources/images/checkerboard.png [moved from Cura/resources/images/checkerboard.png with 100% similarity]
resources/images/checkmark.png [moved from Cura/resources/images/checkmark.png with 100% similarity]
resources/images/cross.png [moved from Cura/resources/images/cross.png with 100% similarity]
resources/images/cura-overlay.png [moved from Cura/resources/images/cura-overlay.png with 100% similarity]
resources/images/endstop_none.png [moved from Cura/resources/images/endstop_none.png with 100% similarity]
resources/images/endstop_xmax.png [moved from Cura/resources/images/endstop_xmax.png with 100% similarity]
resources/images/endstop_xmin.png [moved from Cura/resources/images/endstop_xmin.png with 100% similarity]
resources/images/endstop_ymax.png [moved from Cura/resources/images/endstop_ymax.png with 100% similarity]
resources/images/endstop_ymin.png [moved from Cura/resources/images/endstop_ymin.png with 100% similarity]
resources/images/endstop_zmax.png [moved from Cura/resources/images/endstop_zmax.png with 100% similarity]
resources/images/endstop_zmin.png [moved from Cura/resources/images/endstop_zmin.png with 100% similarity]
resources/images/error.png [moved from Cura/resources/images/error.png with 100% similarity]
resources/images/exit.png [moved from Cura/resources/images/exit.png with 100% similarity]
resources/images/extrude.png [moved from Cura/resources/images/extrude.png with 100% similarity]
resources/images/glButtons.png [moved from Cura/resources/images/glButtons.png with 100% similarity]
resources/images/print-move-home.png [moved from Cura/resources/images/print-move-home.png with 100% similarity]
resources/images/print-move-x-1.png [moved from Cura/resources/images/print-move-x-1.png with 100% similarity]
resources/images/print-move-x-10.png [moved from Cura/resources/images/print-move-x-10.png with 100% similarity]
resources/images/print-move-x-100.png [moved from Cura/resources/images/print-move-x-100.png with 100% similarity]
resources/images/print-move-x1.png [moved from Cura/resources/images/print-move-x1.png with 100% similarity]
resources/images/print-move-x10.png [moved from Cura/resources/images/print-move-x10.png with 100% similarity]
resources/images/print-move-x100.png [moved from Cura/resources/images/print-move-x100.png with 100% similarity]
resources/images/print-move-y-1.png [moved from Cura/resources/images/print-move-y-1.png with 100% similarity]
resources/images/print-move-y-10.png [moved from Cura/resources/images/print-move-y-10.png with 100% similarity]
resources/images/print-move-y-100.png [moved from Cura/resources/images/print-move-y-100.png with 100% similarity]
resources/images/print-move-y1.png [moved from Cura/resources/images/print-move-y1.png with 100% similarity]
resources/images/print-move-y10.png [moved from Cura/resources/images/print-move-y10.png with 100% similarity]
resources/images/print-move-y100.png [moved from Cura/resources/images/print-move-y100.png with 100% similarity]
resources/images/print-move-z-0.1.png [moved from Cura/resources/images/print-move-z-0.1.png with 100% similarity]
resources/images/print-move-z-1.png [moved from Cura/resources/images/print-move-z-1.png with 100% similarity]
resources/images/print-move-z-10.png [moved from Cura/resources/images/print-move-z-10.png with 100% similarity]
resources/images/print-move-z0.1.png [moved from Cura/resources/images/print-move-z0.1.png with 100% similarity]
resources/images/print-move-z1.png [moved from Cura/resources/images/print-move-z1.png with 100% similarity]
resources/images/print-move-z10.png [moved from Cura/resources/images/print-move-z10.png with 100% similarity]
resources/images/question.png [moved from Cura/resources/images/question.png with 100% similarity]
resources/images/ready.png [moved from Cura/resources/images/ready.png with 100% similarity]
resources/images/retract.png [moved from Cura/resources/images/retract.png with 100% similarity]
resources/images/splash.png [moved from Cura/resources/images/splash.png with 100% similarity]
resources/images/ultimaker-overlay.png [moved from Cura/resources/images/ultimaker-overlay.png with 100% similarity]
resources/images/youmagine-text.png [moved from Cura/resources/images/youmagine-text.png with 100% similarity]
resources/locale/Cura.in [moved from Cura/resources/locale/Cura.in with 100% similarity]
resources/locale/Cura.pot [moved from Cura/resources/locale/Cura.pot with 100% similarity]
resources/locale/de/LC_MESSAGES/Cura.mo [moved from Cura/resources/locale/de/LC_MESSAGES/Cura.mo with 100% similarity]
resources/locale/de/LC_MESSAGES/Cura.po [moved from Cura/resources/locale/de/LC_MESSAGES/Cura.po with 100% similarity]
resources/locale/en/LC_MESSAGES/Cura.mo [moved from Cura/resources/locale/en/LC_MESSAGES/Cura.mo with 100% similarity]
resources/locale/en/LC_MESSAGES/Cura.po [moved from Cura/resources/locale/en/LC_MESSAGES/Cura.po with 100% similarity]
resources/locale/fr/LC_MESSAGES/Cura.mo [moved from Cura/resources/locale/fr/LC_MESSAGES/Cura.mo with 100% similarity]
resources/locale/fr/LC_MESSAGES/Cura.po [moved from Cura/resources/locale/fr/LC_MESSAGES/Cura.po with 100% similarity]
resources/locale/nl/LC_MESSAGES/Cura.mo [moved from Cura/resources/locale/nl/LC_MESSAGES/Cura.mo with 100% similarity]
resources/locale/nl/LC_MESSAGES/Cura.po [moved from Cura/resources/locale/nl/LC_MESSAGES/Cura.po with 100% similarity]
resources/locale/po/LC_MESSAGES/Cura.mo [moved from Cura/resources/locale/po/LC_MESSAGES/Cura.mo with 100% similarity]
resources/locale/po/LC_MESSAGES/Cura.po [moved from Cura/resources/locale/po/LC_MESSAGES/Cura.po with 100% similarity]
resources/locale/ru/LC_MESSAGES/Cura.mo [moved from Cura/resources/locale/ru/LC_MESSAGES/Cura.mo with 100% similarity]
resources/locale/ru/LC_MESSAGES/Cura.po [moved from Cura/resources/locale/ru/LC_MESSAGES/Cura.po with 100% similarity]
resources/locale/sp/LC_MESSAGES/Cura.mo [moved from Cura/resources/locale/sp/LC_MESSAGES/Cura.mo with 100% similarity]
resources/locale/sp/LC_MESSAGES/Cura.po [moved from Cura/resources/locale/sp/LC_MESSAGES/Cura.po with 100% similarity]
resources/machine_profiles/MakerBotReplicator.ini [moved from Cura/resources/machine_profiles/MakerBotReplicator.ini with 100% similarity]
resources/machine_profiles/Mendel.ini [moved from Cura/resources/machine_profiles/Mendel.ini with 100% similarity]
resources/machine_profiles/PrintrBot.ini [moved from Cura/resources/machine_profiles/PrintrBot.ini with 100% similarity]
resources/machine_profiles/PrintrBotLC+.ini [moved from Cura/resources/machine_profiles/PrintrBotLC+.ini with 100% similarity]
resources/machine_profiles/Prusa Mendel i3.ini [moved from Cura/resources/machine_profiles/Prusa Mendel i3.ini with 100% similarity]
resources/meshes/Attribution.txt [moved from Cura/resources/meshes/Attribution.txt with 100% similarity]
resources/meshes/ultimaker2_platform.stl [moved from Cura/resources/meshes/ultimaker2_platform.stl with 100% similarity]
resources/meshes/ultimaker_platform.stl [moved from Cura/resources/meshes/ultimaker_platform.stl with 100% similarity]
resources/stl.ico [moved from Cura/resources/stl.ico with 100% similarity]

index c8d88114371e0764cccd7799d3fcce88aae42214..dbc8b7aabc4b2bf4f03a951d73f89723739e2b68 100644 (file)
@@ -1059,9 +1059,9 @@ def getPluginBasePaths():
        if platform.system() != "Windows":
                ret.append(os.path.expanduser('~/.cura/plugins/'))
        if platform.system() == "Darwin" and hasattr(sys, 'frozen'):
-               ret.append(os.path.normpath(os.path.join(resources.resourceBasePath, "Cura/plugins")))
+               ret.append(os.path.normpath(os.path.join(resources.resourceBasePath, "plugins")))
        else:
-               ret.append(os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'plugins')))
+               ret.append(os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', 'plugins')))
        return ret
 
 def getPluginList():
index 1d7bcc472fcf8b82e140f4790dbb26a8d9167f95..0af45dbebcb1b9be8e23cd9ad34bf5d2e4d283cc 100644 (file)
@@ -26,12 +26,9 @@ if sys.platform.startswith('darwin'):
                except:
                        resourceBasePath = os.path.join(os.path.dirname(__file__), "../../../../../")
        else:
-               resourceBasePath = os.path.join(os.path.dirname(__file__), "../resources")
-else:
-       if hasattr(sys, 'frozen'):
                resourceBasePath = os.path.join(os.path.dirname(__file__), "../../resources")
-       else:
-               resourceBasePath = os.path.join(os.path.dirname(__file__), "../resources")
+else:
+       resourceBasePath = os.path.join(os.path.dirname(__file__), "../../resources")
 
 def getPathForResource(dir, subdir, resource_name):
        assert os.path.isdir(dir), "{p} is not a directory".format(p=dir)
similarity index 100%
rename from Cura/plugins/TweakAtZ.py
rename to plugins/TweakAtZ.py
similarity index 100%
rename from Cura/plugins/pauseAtZ.py
rename to plugins/pauseAtZ.py
similarity index 100%
rename from Cura/resources/Cura.icns
rename to resources/Cura.icns
similarity index 100%
rename from Cura/resources/cura.ico
rename to resources/cura.ico
similarity index 100%
rename from Cura/resources/stl.ico
rename to resources/stl.ico