From 53869a091c9afb50f93b1c4a403bbe68e7167012 Mon Sep 17 00:00:00 2001 From: Bryan O'Sullivan Date: Fri, 12 Sep 2008 23:56:45 +0000 Subject: DEV-18419 / Allow develop.py to be run from outside source tree Whatever directory develop.py is run from, it will create the build trees there. Reviewed by Mani. --- indra/develop.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/develop.py b/indra/develop.py index a96ea0a6c9..131fcc9ec9 100755 --- a/indra/develop.py +++ b/indra/develop.py @@ -141,6 +141,7 @@ class PlatformSetup(object): # do a sanity check to make sure we have a generator if not hasattr(self, 'generator'): raise "No generator available for '%s'" % (self.__name__,) + src_dir = os.path.dirname(os.path.realpath(sys.argv[0])) cwd = os.getcwd() created = [] try: @@ -151,7 +152,7 @@ class PlatformSetup(object): simple = False try: os.chdir(d) - cmd = self.cmake_commandline(cwd, d, args, simple) + cmd = self.cmake_commandline(src_dir, d, args, simple) print 'Running %r in %r' % (cmd, d) self.run(cmd, 'cmake') finally: -- cgit v1.2.3