Removed unnecessary resolve in Workplace
authorFrederic Massart <fred@moodle.com>
Tue, 7 Aug 2012 09:25:27 +0000 (17:25 +0800)
committerFrederic Massart <fred@moodle.com>
Tue, 7 Aug 2012 09:25:27 +0000 (17:25 +0800)
lib/workplace.py

index 0d5ab41..48fd29e 100644 (file)
@@ -215,10 +215,6 @@ class Workplace(object):
             path = os.getcwd()
         path = os.path.realpath(os.path.abspath(path))
 
-        # This path points right to a Moodle instance
-        if moodle.Moodle.isInstance(path):
-            return moodle.Moodle(path)
-
         # Is this path in a Moodle instance?
         if path.startswith(self.path):
             (head, tail) = os.path.split(path)