Permalink
Browse files

Use xcrun to find momc, if available

  • Loading branch information...
1 parent 2a09a30 commit 2636d98b674854d1472688d041675ddb6266dcb3 Devin Chalmers committed Feb 29, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 emogenerator/emogenerator.py
@@ -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:

0 comments on commit 2636d98

Please sign in to comment.