Skip to content

Commit

Permalink
debugguing tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwhite committed Feb 9, 2016
1 parent 990c23c commit 33cccbc
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions __init__.py
Expand Up @@ -84,15 +84,15 @@ def MODULE_LIST(force_compile=False):
for script in files:
script_name = '.'.join(script.split('.')[:-1])
file, pathname, desc = imp.find_module(script_name, [search_path])
try:
new_module = imp.load_module(script_name, file, pathname, desc)
if not new_module in modules:
# if the script wasn't found in an early search path
# make sure it works and then add it
new_module.SCRIPT.download
modules.append(new_module)
except:
sys.stderr.write("Failed to load script: %s (%s)" % (script_name, search_path))
#try:
new_module = imp.load_module(script_name, file, pathname, desc)
if not new_module in modules:
# if the script wasn't found in an early search path
# make sure it works and then add it
new_module.SCRIPT.download
modules.append(new_module)
#except:
# sys.stderr.write("Failed to load script: %s (%s)" % (script_name, search_path))

return modules

Expand Down

0 comments on commit 33cccbc

Please sign in to comment.