Skip to content

Commit

Permalink
Merge pull request #4 from robwala/myST3Branch
Browse files Browse the repository at this point in the history
Moved the load_settings line down so it will run upon command launch
  • Loading branch information
martinssipenko committed Jun 7, 2013
2 parents 038110a + b06875c commit daa77a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SublimeHostsEdit.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import sublime, sublime_plugin

settings = sublime.load_settings('SublimeHostsEdit.sublime-settings')

class OpenHostsFileCommand(sublime_plugin.TextCommand):
def run(self, edit):
settings = sublime.load_settings('SublimeHostsEdit.sublime-settings')
self.view.window().open_file(settings.get(sublime.platform()+'_hosts_file_location'))

0 comments on commit daa77a9

Please # to comment.