aboutsummaryrefslogtreecommitdiff
path: root/ipsbuild-setuptree.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2013-04-19 17:25:16 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2013-04-19 17:25:16 -0400
commit60ad0c3fd1c55be857ea902ff431db8d958efc64 (patch)
tree52c43cdca24248f06bc99bc226e82a347ce148bc /ipsbuild-setuptree.py
parenta332d3db796261e5cc5dec457c8ae0997c7257b4 (diff)
downloadipsutils-60ad0c3fd1c55be857ea902ff431db8d958efc64.tar.gz
Massive increase of changes. Too many to count
Diffstat (limited to 'ipsbuild-setuptree.py')
-rw-r--r--ipsbuild-setuptree.py17
1 files changed, 9 insertions, 8 deletions
diff --git a/ipsbuild-setuptree.py b/ipsbuild-setuptree.py
index 135c4e9..0ad38a8 100644
--- a/ipsbuild-setuptree.py
+++ b/ipsbuild-setuptree.py
@@ -1,14 +1,15 @@
import os
import sys
+home = None
try:
- if sys.platform == 'linux' or sys.platform == 'darwin':
+ if sys.platform == 'linux2' or sys.platform == 'darwin':
home = os.path.normpath(os.environ['HOME'])
elif sys.platform == 'win32':
home = os.path.normpath(os.environ['USERPROFILE'])
except:
Exception("Unsupported platform: {0:s}".format(sys.platform))
-
+
head = os.path.join(home, 'ipsbuild')
tree = ['BUILDROOT',
'BUILD',
@@ -22,14 +23,14 @@ def create_dir(dirent):
os.mkdir(dirent)
def main():
- try:
- self.create_dir(head)
- except:
- print("{0:s} already exists, please remove it.".format(head))
-
+# try:
+ create_dir(head)
+# except:
+# print("{0:s} already exists, please remove it.".format(head))
+
try:
for d in tree:
- self.create_dir(os.path.join(head, d))
+ create_dir(os.path.join(head, d))
except:
pass