Aufgrund einer Wartung wird GitLab am 25.01 zwischen 8:00 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 25.01 between 8:00 and 9:00 am.

Commit 3deae552 authored by GromeTT's avatar GromeTT
Browse files

Restructured project structure

+ content for lib in a separate folder
+ scripts outside lib
+ simplified imports
parent c072e5a7
from os.path import dirname, basename, isfile, join
import glob
modules = glob.glob(join(dirname(__file__), "*.py"))
__all__ = [ basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')]
#rom config.forwarder import *
import config
\ No newline at end of file
import s3i
import sys, os
import json
PACKAGE_PARENT = '..'
SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))))
sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT)))
import config
import importlib
configData = importlib.import_module("config."+"johnDeere_harvester")
from Machines.harvester import Harvester
from ..Machines.harvester import Harvester
import tools
class JohnDeere(Harvester):
......@@ -19,4 +14,4 @@ def send_komatsuForwarder(self, receiver_name, job):
endpoint = tools.dir_id_to_defualtEndpoints(self.idp, iD)
tools.service_request(self.idp, "komatsu_forwarder", "fml40::ForwardingJob", endpoint,parameter=job)
\ No newline at end of file
# from os.path import dirname, basename, isfile, join
# import glob
# modules = glob.glob(join(dirname(__file__), "*.py"))
# __all__ = [ basename(f)[:-3] for f in modules if isfile(f) and not f.endswith('__init__.py')]
# #rom config.forwarder import *
# import config
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