Permalink
Browse files

Set the global command_prefix correctly

Without the added line, PrepareCommand() only sets a local command_prefix variable, causing p4 errors when p4 is not on the default path. (In my case, it's at /usr/local/bin/p4).
  • Loading branch information...
1 parent eaef565 commit cb51a08e0c1808477e8b5ca26e3de8db4bfe0179 @asomorjai asomorjai committed Dec 19, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 Perforce.py
View
1 Perforce.py
@@ -54,6 +54,7 @@ def on_activated(self, view):
def PrepareCommand():
perforce_settings = sublime.load_settings('Perforce.sublime-settings')
p4Env = perforce_settings.get('perforce_p4env')
+ global command_prefix
command_prefix = ''
if(p4Env and p4Env != ''):
command_prefix = 'source ' + p4Env + ' && '

0 comments on commit cb51a08

Please sign in to comment.