Esempio n. 1
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)
Esempio n. 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)