-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
23 lines (19 loc) · 708 Bytes
/
main.py
File metadata and controls
23 lines (19 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import config
import module
####Lade das Configfile
cfg = config.Config()
cfg.readConfig()
modul = module.Module()
if cfg.rocketStops=="true" and cfg.lureModule=="true":
print("Rocketstops und Lockmodule ausgew\U000000e4hlt")
modul.full(cfg)
elif cfg.rocketStops =="false" and cfg.lureModule=="true":
print("Nur Lockmodule ausgew\U000000e4hlt")
modul.LockModulOnly(cfg)
elif cfg.rocketStops =="true" and cfg.lureModule=="false":
print("Nur Rocketstops ausgew\U000000e4hlt")
modul.rocketStopsOnly(cfg)
else:
print("Es wurde nichts aktiviert. Pr\U000000fcfe im Configfile das die Attribute 'rocketStops' oder 'lureModule' auf 'true' gesetzt sind")