summaryrefslogtreecommitdiff
path: root/indra/develop.py
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2008-09-12 23:56:45 +0000
committerBryan O'Sullivan <bos@lindenlab.com>2008-09-12 23:56:45 +0000
commit53869a091c9afb50f93b1c4a403bbe68e7167012 (patch)
tree18a30c63c30f3c936f1995459c8a5ac9bdb400c9 /indra/develop.py
parentb2bbc4021c1b0c1da57a57cce0b5370b3f197510 (diff)
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.
Diffstat (limited to 'indra/develop.py')
-rwxr-xr-xindra/develop.py3
1 files changed, 2 insertions, 1 deletions
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: