
| Current Path : /var/www/web-klick.de/dsh/21_finance/30/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/web-klick.de/dsh/21_finance/30/iey.py |
import glob,os,re,time
zaehler = 1
buchh = glob.glob("*/*.db")
buchh.sort()
while (0 == 0):
rounds = 1
for dir in buchh:
m = re.search(r"^([a-z]*?)[\\\/](.*?)$",dir)
if not m:
continue
dir1 = m.group(1)
if not os.path.isfile(dir1+"/rounds"):
continue
print("=" * len("ACCOUNTING " + dir1 + ", LOOP " + str(zaehler)),flush=True)
print("ACCOUNTING " + dir1 + ", LOOP " + str(zaehler),flush=True)
print("=" * len("ACCOUNTING " + dir1 + ", LOOP " + str(zaehler)),flush=True)
time.sleep(1.5)
os.system("chdir " + dir1 + ";touch __cache__.db; ie y 0000_9999; ie y; chdir ..")
# os.system("chdir " + dir1 + "/" + dir1 + "_datev_EXCLUDE; ie write_datev; chdir ..; chdir ..")
print(dir1 + " <----",flush=True)
print("",flush=True)
time.sleep(0.5)
if os.path.isfile(dir1+"/rounds"):
rounds = max(rounds, int(open(dir1+"/rounds").read().split("\n")[0]) )
if rounds == 1:
break
zaehler = zaehler + 1
print("",flush=True)
print("TOTAL LOOPS: " + str(zaehler),flush=True)
print("",flush=True)