analysis cleanup, added megui job creator

--HG--
branch : sandbox
This commit is contained in:
Andreas
2009-08-24 21:49:07 +00:00
parent 59cdfe6f2f
commit 14ce799048
2 changed files with 8 additions and 4 deletions

View File

@@ -13,7 +13,6 @@ import os
import getopt
import re
import xml.dom.minidom as xdm
import xml.dom
# local imports
@@ -105,18 +104,18 @@ def cli(src_dir, dest_dir, template, job_dir, tmp_dir):
opts["mpg_input"] = mpg_fp
opts["final_output"] = avi_fp
opts["d2v_output"] = d2v_fp
# if avi_fn older than mpg or doesn't exist
# then create job xml
# if avi_fn doesn't exist then create job xml
if not os.path.exists(avi_fp):
create_megui_job(template, job_dir, opts)
def append_megui_joblist(jobname):
joblist = "c:\\program files\\megui\\joblists.xml"
# load the xml
inf = open(joblist,"r")
dom = xdm.parse(inf)
inf.close()
# add <string>job220</string> to mainJobList
# add <string>job220</string> to <mainJobList>
JobListSerializer = dom.getElementsByTagName("JobListSerializer")[0]
mainJobList = JobListSerializer.getElementsByTagName("mainJobList")[0]
string = dom.createElement("string")

View File

@@ -0,0 +1,5 @@
@echo off
rem determine directory of script. may be different from current working directory
for /F %%I IN ("%0") do set BIN_DIR=%%~dpI
rem expect python.exe in the PATH
python.exe %BIN_DIR%\create_jobs.py %*