Skip to content

Commit

Permalink
Use open_file() and not run_command("open_file")
Browse files Browse the repository at this point in the history
run_command("open_file") seems to be bugged on Windows and apparently
there's a native API call that does exactly that. Fixes #20 and #23.
  • Loading branch information
Alexey Ermakov committed Jun 3, 2012
1 parent e15e445 commit 3ceaa28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gist.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _fn(*args, **kwargs):
if not os.path.exists(user_settings_path):
default_settings_path = os.path.join(sublime.packages_path(), 'Gist', 'Gist.sublime-settings')
shutil.copy(default_settings_path, user_settings_path)
sublime.active_window().run_command("open_file", {"file": user_settings_path})
sublime.active_window().open_file(user_settings_path)
except subprocess.CalledProcessError as err:
sublime.error_message("Gist: Error while contacting GitHub: cURL returned %d" % err.returncode)
except EnvironmentError as err:
Expand Down

0 comments on commit 3ceaa28

Please sign in to comment.