Skip to content

Commit

Permalink
Allow for a local set of untracked modules
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Sep 24, 2011
1 parent 5ffe61b commit c96f4d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions regen_modules.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python
MODULE_DIRECTORY = 'modules.d'
LOCAL_MODULES = 'modules.local.d'
CONFIG = 'module_config.py'
outfile = 'bModules.py'

Expand All @@ -9,6 +10,8 @@ def rebuild_bModules():
out = open(outfile, 'w')
# Module directory
modules = [os.path.join(MODULE_DIRECTORY, i) for i in os.listdir(MODULE_DIRECTORY)]
if os.path.exists(LOCAL_MODULES):
modules.append(os.path.join(LOCAL_MODULES, i) for i in os.listdir(LOCAL_MODULES)
modules.sort()
modules.append(CONFIG)
for i in modules:
Expand Down

0 comments on commit c96f4d4

Please sign in to comment.