Revision: 2360
Author: jprantan
Date: Fri Oct 23 00:45:43 2009
Log: Fixed problem with same name variable file import adding extra
variables to namespace. Issue 413.
http://code.google.com/p/robotframework/source/detail?r=2360
Modified:
/trunk/src/robot/utils/importing.py
=======================================
--- /trunk/src/robot/utils/importing.py Sun Apr 19 13:26:54 2009
+++ /trunk/src/robot/utils/importing.py Fri Oct 23 00:45:43 2009
@@ -34,7 +34,8 @@
try:
module = __import__(modname)
if normpath(moddir) !=
normpath(os.path.dirname(module.__file__)):
- module = reload(module)
+ del sys.modules[modname]
+ module = __import__(modname)
except:
raise DataError(err_prefix + get_error_message())
finally: