Adjusted bundled Cura plugin to not define already defined folder paths again, now included automatically

This commit is contained in:
Gina Häußge 2015-01-15 14:53:23 +01:00
parent 2324a1bf0e
commit bb7aa6544f

View file

@ -138,10 +138,6 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
##~~ AssetPlugin API
def get_asset_folder(self):
import os
return os.path.join(os.path.dirname(os.path.realpath(__file__)), "static")
def get_assets(self):
return {
"js": ["js/cura.js"],
@ -180,10 +176,6 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
_settings=dict(name="Cura", custom_bindings=True)
)
def get_template_folder(self):
import os
return os.path.join(os.path.dirname(os.path.realpath(__file__)), "templates")
##~~ SlicerPlugin API
def is_slicer_configured(self):