Commit b620010c authored by Valentin Buck's avatar Valentin Buck

More builds!

parent d89cc8d0
Pipeline #8309 passed with stage
in 25 minutes and 35 seconds
PYTHON CTD-Reader.py
NAME CTD-Plugin
\ No newline at end of file
NAME CTD-Plugin
FOLDER utm
\ No newline at end of file
PYTHON GEOMAR_ADCP_READER.py
NAME GEOMAR-ADCP-Reader
FOLDER utm
\ No newline at end of file
PYTHON GEOMAR_Turbidity_Reader.py
NAME GEOMAR-Turbidity-Plugin
FOLDER utm
\ No newline at end of file
PYTHON WinADCPReader.py
RUST pylibwinadcp
NAME WinADCP-Reader
FOLDER utm
\ No newline at end of file
......@@ -26,6 +26,7 @@ def process_python(path, module):
def process_plugin_folder(path):
descriptor = open(os.path.join(path,"BUILD")).read().splitlines()
plugin_files = []
plugin_folders = []
plugin_name = os.path.basename(path)
for l in descriptor:
if l.startswith("RUST"):
......@@ -34,11 +35,14 @@ def process_plugin_folder(path):
plugin_files += process_python(path, l[7:].strip())
elif l.startswith("NAME"):
plugin_name = l[5:].strip()
elif l.startswith("FOLDER"):
plugin_folders += l[7:].strip()
print(plugin_name)
print(plugin_files)
return {
'name': plugin_name,
'files': plugin_files
'files': plugin_files,
'folders': plugin_folders
}
target_folder_name = "plugins"
......@@ -58,6 +62,8 @@ for f in os.listdir():
os.mkdir(os.path.join(target_folder_name,plugin['name']))
for f in plugin["files"]:
shutil.copyfile(f, os.path.join(target_folder_name, plugin['name'], os.path.basename(f)))
for f in plugin["folders"]:
shutil.copytree(f, os.path.join(target_folder_name, plugin['name'], os.path.basename(f)))
except Exception as e:
print("Error handling plugin " + f)
print(repr(e))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment