Script execution

This commit is contained in:
gac-x11ma
2019-05-15 14:19:50 +02:00
parent 90410e043b
commit b687bc8c43

View File

@@ -1,4 +1,5 @@
#Script imported and adopted from: XTREME beamline
import time
#Parameters
@@ -137,7 +138,10 @@ try:
#newName = get_exec_pars().path + "/" + time.strftime("%Y%m%d_%H%M_", start) + FILE + ".txt";
import time
os.makedirs(get_exec_pars().path)
try:
os.makedirs(get_exec_pars().path)
except:
pass
newName = get_exec_pars().path + "/" + time.strftime("%Y%m%d_%H%M_", start) + FILE + ".txt";
name = getNewestFile()