Skip to content

Commit

Permalink
Take java modules into account
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Aug 13, 2017
1 parent 18ad46a commit c7a5615
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tools/compile_stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,18 @@ def module_overrides():
paths = []
for folder, subfolders, files in os.walk(folder_overrides):
for fname in files:
module_folder = os.path.join('ouroboros',
folder.replace(folder_overrides, ''))
if fname.endswith('.java'):
module_path = os.path.join('ouroboros',
module_path = os.path.join(module_folder ,
fname.replace('.java', '.py'))
module_init_path = os.path.join('ouroboros',
module_init_path = os.path.join(module_folder,
fname.replace('.java', ''),
'__init__.py')
paths += [module_path, module_init_path]

paths += MODULE_MANUAL_OVERRIDES

return list(sorted(paths))


Expand Down

0 comments on commit c7a5615

Please sign in to comment.