Skip to content

Commit

Permalink
several bugfixes in getting_started.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Holder committed Jul 7, 2010
1 parent f27a9b6 commit cb6d8a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions getting_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@
string_args['dd'] = 'dendropy'
else:
string_args['dd'] = 'DendroPy'
if not os.path.exists(dendropy_dir):
if not os.path.exists(string_args['dd']):
try:
result = subprocess.call(['git', 'clone', 'git clone git://github.com/jeetsukumaran/DendroPy.git'])
result = subprocess.call(['git', 'clone', 'git://github.com/jeetsukumaran/DendroPy.git'])
except:
sys.exit("""The attempt to pull down the latest version of dendropy using git failed.
Expand Down Expand Up @@ -113,10 +113,10 @@
echo "phyloplumber_env.sh has been written. Whenever you want to work on phyloplumber"
echo " from the command line, then (from a bash shell) source this file to "
echo " configure your environment"
''')
''' % string_args)
o.close()
result = subprocess.call(['/bin/sh', fn])
if result == 0:
os.path.remove(fn)
os.remove(fn)
else:
sys.exit(1)

0 comments on commit cb6d8a5

Please sign in to comment.