Skip to content

Commit

Permalink
using readlines on .enw files to make installation seperable
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathf committed Sep 5, 2016
1 parent b472b93 commit c4cd392
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions enw/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,12 @@ def pip_install(pypath):
for rcfile in stack:

os.chdir(os.path.dirname(rcfile))
cmd = "%s install -r %s" % (pippath, rcfile)
print(cmd)
os.system(cmd)
with open(rcfile) as src:
lines = src.readlines()
for line in lines:
cmd = "%s install -r %s" % (pippath, line)
print(cmd)
os.system(cmd)

os.chdir(curdir_saved)

Expand Down

0 comments on commit c4cd392

Please sign in to comment.