Updates:
        Summary: Cannot import two libraries with same name using physical path
        Status: Started
        Owner: pekka.klarck

Comment #3 on issue 822 by pekka.klarck: Cannot import two libraries with same name using physical path
http://code.google.com/p/robotframework/issues/detail?id=822

The root cause for this problem is that when module Lib is imported Python puts it into sys.modules and finds it there when we reimport it. We've already fixed same problem with variable files by removing the module from sys.modules and same fix works in this case too. I will, however, first investigate could we use execfile or some other mechanism to import the file instead of __import__ function we currently use.

This problem only manifests itself when importing libraries using physical paths. When you just use the library name, and the library is in PYTHONPATH, it is natural that you always get the same library module or class.

Reply via email to