From 7bdacbae1cff59d1f29aa0b604d42941a0c1e194 Mon Sep 17 00:00:00 2001 From: Luke Petre Date: Wed, 29 May 2013 14:28:30 +0100 Subject: [PATCH] Not having a .bash_profile file shouldn't silently break this plugin --- Perforce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Perforce.py b/Perforce.py index c30f949..58cd2d5 100644 --- a/Perforce.py +++ b/Perforce.py @@ -52,7 +52,7 @@ def on_activated(self, view): # Utility functions def ConstructCommand(in_command): command = '' - if(sublime.platform() == "osx"): + if(sublime.platform() == "osx" and os.path.exists('~/.bash_profile')): command = 'source ~/.bash_profile && ' # Revert change until threading is fixed # command = getPerforceConfigFromPreferences(command)