analysis cleanup, added megui job creator
--HG-- branch : sandbox
This commit is contained in:
@@ -13,7 +13,6 @@ import os
|
|||||||
import getopt
|
import getopt
|
||||||
import re
|
import re
|
||||||
import xml.dom.minidom as xdm
|
import xml.dom.minidom as xdm
|
||||||
import xml.dom
|
|
||||||
|
|
||||||
# local imports
|
# local imports
|
||||||
|
|
||||||
@@ -105,18 +104,18 @@ def cli(src_dir, dest_dir, template, job_dir, tmp_dir):
|
|||||||
opts["mpg_input"] = mpg_fp
|
opts["mpg_input"] = mpg_fp
|
||||||
opts["final_output"] = avi_fp
|
opts["final_output"] = avi_fp
|
||||||
opts["d2v_output"] = d2v_fp
|
opts["d2v_output"] = d2v_fp
|
||||||
# if avi_fn older than mpg or doesn't exist
|
# if avi_fn doesn't exist then create job xml
|
||||||
# then create job xml
|
|
||||||
if not os.path.exists(avi_fp):
|
if not os.path.exists(avi_fp):
|
||||||
create_megui_job(template, job_dir, opts)
|
create_megui_job(template, job_dir, opts)
|
||||||
|
|
||||||
|
|
||||||
def append_megui_joblist(jobname):
|
def append_megui_joblist(jobname):
|
||||||
joblist = "c:\\program files\\megui\\joblists.xml"
|
joblist = "c:\\program files\\megui\\joblists.xml"
|
||||||
# load the xml
|
# load the xml
|
||||||
inf = open(joblist,"r")
|
inf = open(joblist,"r")
|
||||||
dom = xdm.parse(inf)
|
dom = xdm.parse(inf)
|
||||||
inf.close()
|
inf.close()
|
||||||
# add <string>job220</string> to mainJobList
|
# add <string>job220</string> to <mainJobList>
|
||||||
JobListSerializer = dom.getElementsByTagName("JobListSerializer")[0]
|
JobListSerializer = dom.getElementsByTagName("JobListSerializer")[0]
|
||||||
mainJobList = JobListSerializer.getElementsByTagName("mainJobList")[0]
|
mainJobList = JobListSerializer.getElementsByTagName("mainJobList")[0]
|
||||||
string = dom.createElement("string")
|
string = dom.createElement("string")
|
||||||
|
|||||||
5
megui/create_megui_jobs.bat
Normal file
5
megui/create_megui_jobs.bat
Normal 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 %*
|
||||||
Reference in New Issue
Block a user