various fixes and migration to python

This commit is contained in:
Sheppy
2017-02-24 23:03:35 +01:00
parent 61d9ea1fc7
commit a8f64b3229
5 changed files with 97 additions and 16 deletions

View File

@@ -2,13 +2,14 @@
import os
import sys
import time
from hl_utils import error, is_cip, shexec, color_remove
from hl_utils import error, is_cip, shexec, color_remove, hlpath
#Druckerguthaben
if is_cip():
while(True):
path = hlpath("pracct.log")
out = color_remove(shexec("pr_acct").split("\n")[0]).split(' ')[-1]
with open("pracct.log",'w') as f :
with open(path,'w+') as f:
f.write(out)
time.sleep(60)
time.sleep(30)
sys.exit()