Skip to content

Commit

Permalink
It seems you do not require the global settings object anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
thatsIch committed Dec 26, 2016
1 parent b67e81b commit b7b9ec8
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions rainmeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,26 +196,17 @@ def make_path(string, filepath):
return


# Initialize Module
# Global Variables
SETTINGS = None


def plugin_loaded():
"""Called automatically from ST3 if plugin is loaded.
Is required now due to async call and ignoring sublime.* from main routine
"""
# define variables from the global scope
global SETTINGS
SETTINGS = sublime.load_settings("Rainmeter.sublime-settings")

logger.info("#PROGRAMPATH#:\t\t" + get_cached_program_path())
logger.info("#PROGRAMPATH#:\t" + get_cached_program_path())
logger.info("#PROGRAMDRIVE#:\t" + get_cached_program_drive())
logger.info("#SETTINGSPATH#:\t" + get_cached_setting_path())
logger.info("#SKINSPATH#:\t\t" + get_cached_skin_path())
logger.info("#PLUGINSPATH#:\t\t" + get_cached_plugin_path())
logger.info("#ADDONSPATH#:\t\t" + get_cached_addon_path())
logger.info("#PLUGINSPATH#:\t" + get_cached_plugin_path())
logger.info("#ADDONSPATH#:\t" + get_cached_addon_path())


class MeterAutoComplete(sublime_plugin.EventListener):
Expand Down

0 comments on commit b7b9ec8

Please sign in to comment.