removed old functions
@@ -33,79 +33,6 @@ def status_color_folder():
status_color = os.path.join(plugin, 'User', 'Status Color')
return status_color
-def getPluginName():
- """
- Get the name where the pugin is installed (package folder)
- """
- plugin_path = getPluginPath()
- return os.path.basename(plugin_path)
-
-
-
-def getPresetPath():
- """
- Packages/Deviot/presets
- """
- plugin_path = getPluginPath()
- preset_path = os.path.join(plugin_path, 'presets')
-
- return preset_path
-
-
-def getDeviotUserPath():
- """
- Deviot folder in Packages/User/Deviot/
- """
- packages_path = getPackagesPath()
- deviot_user_path = os.path.join(packages_path, 'User', 'Deviot')
-
- try:
- os.makedirs(deviot_user_path)
- except OSError as exc:
- if exc.errno != errno.EEXIST:
- raise exc
- pass
-
- return deviot_user_path
-
-
-def getUserPioPath():
- """
- Deviot folder in Packages/User/Deviot/pio
- """
- deviot_user_path = getDeviotUserPath()
- data_path = os.path.join(deviot_user_path, 'pio')
-
- try:
- os.makedirs(data_path)
- except OSError as exc:
- if exc.errno != errno.EEXIST:
- raise exc
- pass
-
- return data_path
-
-
-def getConfigFile():
- """
- config file in Packages/User/Deviot/
- """
- user_path = getDeviotUserPath()
- config_file = os.path.join(user_path, 'deviot.ini')
-
- return config_file
-
-
-def getBuildPath(filename):
- from .Preferences import Preferences
-
- build_dir = Preferences().get('build_dir', False)
-
- if(build_dir):
- build_dir = os.path.join(build_dir, filename)
- return build_dir
- return getTempPath(filename)
-
def listWinVolume():
"""
