- Code: Select all
import sublime, sublime_plugin
class P4EditCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().run_command('exec', {'cmd': ['p4', 'edit', self.view.file_name()]})
However, when I run it on a file (bound to F8) it simply returns:
Client 'foo' unknown - use 'client' command to create it.
[Finished]
In this case, "foo" is my hostname. The environment in the script isn't working the way it works on the command line under linux. What's wrong? Or more importantly, how can I debug what's wrong?
Thanks!