import sys
import ConfigParser
-from quantum.common import exceptions as exception
-from quantum.common import flags
+import exceptions as exception
+import flags
from exceptions import ProcessExecutionError
#mod_str = os.path.join(FLAGS.state_path, mod_str)
print "MODULE PATH:%s" %mod_str
print "CUR DIR:%s" %os.getcwd()
- __import__(mod_str)
+ __import__(mod_str, level=2)
print "IO SONO QUI"
return getattr(sys.modules[mod_str], class_str)
except (ImportError, ValueError, AttributeError) as e:
def getPluginFromConfig(file="config.ini"):
print "FILE:%s" %os.path.join(FLAGS.state_path, file)
+ print "Globals:%s" %globals()
Config = ConfigParser.ConfigParser()
Config.read(os.path.join(FLAGS.state_path, file))
return Config.get("PLUGIN", "provider")
The caller should make sure that QuantumManager is a singleton.
"""
-
+import gettext
+gettext.install('quantum', unicode=1)
+
from common import utils
from quantum_plugin_base import QuantumPluginBase
def get_manager(self):
return self.plugin
+
+
+
# TODO(somik): rmove the main class
# Added for temporary testing purposes
def main():
import time
import types
-from quantum.common import exceptions as exception
+from common import exceptions as exception
def import_class(import_str):