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