|
@@ -1,13 +1,14 @@
|
|
|
import csv
|
|
|
import os
|
|
|
import subprocess
|
|
|
+import zipfile
|
|
|
from datetime import datetime
|
|
|
from pathlib import Path
|
|
|
-import zipfile
|
|
|
+
|
|
|
import config
|
|
|
-from status_client.path_info import PathInfo
|
|
|
-from status_client.ftp_client import FtpClient
|
|
|
from status_client.db_info import DatabaseInfo
|
|
|
+from status_client.ftp_client import FtpClient
|
|
|
+from status_client.path_info import PathInfo
|
|
|
|
|
|
|
|
|
def run_command(cmd, logfile):
|
|
@@ -78,7 +79,7 @@ def zip_to_file(base_dir, zip_file):
|
|
|
zip.write(e, e.relative_to(base_dir))
|
|
|
|
|
|
|
|
|
-def main():
|
|
|
+def system_check():
|
|
|
cfg = config.Config()
|
|
|
|
|
|
# Aufgabenplanung aktueller Stand
|
|
@@ -107,4 +108,4 @@ def main():
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
- main()
|
|
|
+ system_check()
|