Skip to content

Commit

Permalink
Merge pull request #1 from ChacheGS/pypi-brython-fix
Browse files Browse the repository at this point in the history
Fix --modules option of brython.py
  • Loading branch information
ChacheGS authored Feb 7, 2017
2 parents eb90287 + 0c3e783 commit 49fbb1a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup/brython.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@
if os.path.exists(include_path):
with open(include_path, encoding="utf-8") as fobj:
bundle_list = [m.strip() for m in fobj if m.strip()]
mods = {k:v for (k, v) in mods.items() if k in bundle_list}
print('bundled modules', bundle_list)
mods = {k:v for (k, v) in mods.items() if k in bundle_list}

# save new version of brython_modules
with open("brython_modules.js", "w", encoding="utf-8") as out:
out.write('__BRYTHON__.use_VFS = true;\n')
out.write('__BRYTHON__.VFS = {}\n'.format(json.dumps(mods)))
out.write('__BRYTHON__.VFS = {}\n'.format(json.dumps(mods)))

0 comments on commit 49fbb1a

Please sign in to comment.