Пример #1
0
 def get_path(self):
     """Full absolute path to the plugin root, including
     settings.PLUGINS_DIR."""
     from merengue.pluggable.utils import get_plugins_dir
     basedir = settings.BASEDIR
     plugins_dir = get_plugins_dir()
     return os.path.join(basedir, plugins_dir, self.directory_name)
Пример #2
0
 def get_path(self):
     """Full absolute path to the plugin root, including
     settings.PLUGINS_DIR."""
     from merengue.pluggable.utils import get_plugins_dir
     basedir = settings.BASEDIR
     plugins_dir = get_plugins_dir()
     return os.path.join(basedir, plugins_dir, self.directory_name)
 def handle(self, **options):
     dirname = os.path.join(settings.BASEDIR, get_plugins_dir())
     plugin_dir = options.get('plugin', None)
     if plugin_dir:
         self.compilepluginmessages(dirname, plugin_dir)
     else:
         for plugin_dir in os.listdir(dirname):
             self.compilepluginmessages(dirname, plugin_dir)
Пример #4
0
 def handle(self, **options):
     dirname = os.path.join(settings.BASEDIR, get_plugins_dir())
     plugin_dir = options.get('plugin', None)
     if plugin_dir:
         self.compilepluginmessages(dirname, plugin_dir)
     else:
         for plugin_dir in os.listdir(dirname):
             self.compilepluginmessages(dirname, plugin_dir)