mirror of https://gitlab.com/cppit/jucipp
3 changed files with 6 additions and 15 deletions
@ -1,13 +1,10 @@
|
||||
#!/usr/bin/python |
||||
#plugin handler |
||||
import sys, os, glob |
||||
cwd = os.getcwd() |
||||
sys.path.append(cwd+"/lib") |
||||
|
||||
import juci_to_python_api as juci |
||||
import glob |
||||
|
||||
def loadplugins(): |
||||
plugin_files = glob.glob(cwd+"/plugins/*.py") |
||||
plugin_files = glob.glob("../plugins/*.py") |
||||
for current_file in plugin_files: |
||||
juci.initPlugin(current_file) |
||||
|
||||
loadplugins() |
||||
|
||||
|
||||
Loading…
Reference in new issue