Fix build on karmic: Work around Python/tar bug
[nacl-build.git] / in-env
blob8249167573a5193946a4d383e735373841e0ca59
1 #!/usr/bin/env python
3 # Example usage:
4 # ./in-env sel_ldr args...
5 # ./in-env nacl-gcc ...
7 import os
8 import sys
10 import cmd_env
11 import naclbuild
14 def main(args):
15 parent_dir = os.path.join(os.getcwd(), os.path.dirname(__file__))
16 build = naclbuild.NaClBuild(cmd_env.BasicEnv(), parent_dir)
17 build.path_env.cmd(args, fork=False)
20 if __name__ == "__main__":
21 main(sys.argv[1:])