Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

skunkworker

macrumors regular
Original poster
Sep 9, 2007
182
20
ive been working on a custom build phase for xcode in python, but now that I am hooking it up to the target I can get any environment variables at runtime.
$SRC_ROOT doesnt work inside the code. or any other $VARs don't either.

EDIT:

Solved it
os.environ.get('SRC_ROOT')
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.