Skip to content

Commit

Permalink
Merge pull request #20 from lpetre/missing_bash_profile
Browse files Browse the repository at this point in the history
Not having a .bash_profile file shouldn't silently break this plugin
  • Loading branch information
ericmartel committed May 29, 2013
2 parents 0537dc4 + 7bdacba commit d43f5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Perforce.py
Expand Up @@ -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)
Expand Down

0 comments on commit d43f5c1

Please sign in to comment.