コード例 #1
0
ファイル: init_scripter.py プロジェクト: moceap/scribus
 def _load_entries(self):
     for path in [scripter_path, os.path.expanduser("~/.scribus/scripter/")]:
         autoload_path = os.path.join(path, "autoload")
         if not os.path.exists(autoload_path):
             continue
         sys.path.insert(0, autoload_path)
         from scribusscript import load_scripts
         self.autoload_scripts = scripts = load_scripts(autoload_path)
         for sd in scripts:
             try:
                 sd.install()
             except:
                 excepthook.show_current_error(i18n("Error installing %r") % sd.name)
コード例 #2
0
 def _load_entries(self):
     for path in [scripter_path, os.path.expanduser("~/.scribus/scripter/")]:
         autoload_path = os.path.join(path, "autoload")
         if not os.path.exists(autoload_path):
             continue
         sys.path.insert(0, autoload_path)
         from scribusscript import load_scripts
         self.autoload_scripts = scripts = load_scripts(autoload_path)
         for sd in scripts:
             try:
                 sd.install()
             except:
                 excepthook.show_current_error(i18n("Error installing %r") % sd.name)