def load(self, fileConfig=None): logging.debug("In Ilsa::load()") filename = os.path.join(constant.INSTALL_DIR, "resources/ilsa/plugin.conf") extensions.register_file(filename) self.loadGroup("widget") self.loadGroup("camera") for plugin in self._plugins: for pl in self._plugins: if pl.name != plugin.name: plugin.ilsa.add(pl)
import os import sys import glob import locale import shutil import fnmatch from distutils.core import setup from setuptools import find_packages import ConfigParser import extensions config = ConfigParser.ConfigParser() config.read(os.path.abspath(os.path.join(os.getcwd(), "resources", "moonstone.conf"))) config_dir = ".{0}".format(config.get("moonstone", "name_unix")) extensions.register_file(os.path.abspath(os.path.join(os.getcwd(), "moonstone/ilsa/resources/plugin.conf"))) registered_plugins = [plugin.module_name for plugin in extensions.get()] if sys.platform == "win32": import py2exe # If run without args, build executables, in quiet mode. if len(sys.argv) == 1: sys.argv.append("py2exe") sys.argv.append("-q") Executable = lambda x, *y, **z: x setup_requires = ["py2exe"] elif sys.platform == "linux2": import cx_Freeze from cx_Freeze import setup, Executable