Skip to content

Commit

Permalink
Use xcrun to find momc, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Chalmers committed Feb 29, 2012
1 parent 2a09a30 commit 2636d98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions emogenerator/emogenerator.py
Expand Up @@ -76,6 +76,12 @@ def store_open_file(option, opt_str, value, parser, *args, **kwargs):
# theResult, thePath = commands.getstatusoutput('which momc')
# if theResult == 0:
# theDefaultMomcPath = thePath

# Ask xcrun where momc is
if not theDefaultMomcPath:
theResult, thePath = commands.getstatusoutput('xcrun -find momc')
if theResult == 0:
theDefaultMomcPath = thePath

# If still no momc then look in the known places.
if not theDefaultMomcPath:
Expand Down

0 comments on commit 2636d98

Please sign in to comment.