forked from jomjol/neural-network-autotrain-digital-counter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.py
27 lines (22 loc) · 719 Bytes
/
script.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import sys
import os
exec(open("configuration.py").read())
original_stdout = sys.stdout
if LogFile:
if os.path.exists(LogFile):
os.remove(LogFile)
if not ReportOnly:
exec(open("c_scripts/image_preparation.py").read())
for x in configurations:
arg1 = x
arg2 = x
if not ReportOnly:
# print("Das ist in Script - Teil 1: " + str(arg1))
a_script = open("c_scripts//doTraining.py").read()
sys.argv = ["c_scripts//doTraining.py", arg1]
exec(a_script)
# print("Das ist in Script - Teil 2: " + str(arg2))
b_script = open("c_scripts//doReport.py").read()
sys.argv = ["c_scripts//doReport.py", arg2]
exec(b_script)
sys.stdout = original_stdout