Skip to content
Snippets Groups Projects
Commit 7eb35db8 authored by Phil's avatar Phil
Browse files

Fixed UTscapy external module import

parent a2e649de
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,6 @@ def import_module(name):
name = os.path.basename(name)
if name.endswith(".py"):
name = name[:-3]
name += ".all"
f,path,desc = imp.find_module(name,[thepath])
try:
......@@ -500,6 +499,7 @@ def usage():
#### MAIN ####
def main(argv):
import __builtin__
# Parse arguments
......@@ -572,7 +572,7 @@ def main(argv):
for m in MODULES:
try:
mod = import_module(m)
__builtins__.__dict__.update(mod.__dict__)
__builtin__.__dict__.update(mod.__dict__)
except ImportError,e:
raise getopt.GetoptError("cannot import [%s]: %s" % (m,e))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment