Commit 8f7677b7 authored by Charlie Hoy's avatar Charlie Hoy
Browse files

fixing a few issues with add_to_existing flag

parent a1919816
......@@ -129,6 +129,7 @@ def run_checks(opts):"Existing html page has been given without specifying "
"--add_to_existing flag. This is probably and error and so "
"manually adding --add_to_existing flag")
if opts.add_to_existing and opts.existing:
for i in glob(opts.existing+"/config/*"):
for i in glob(opts.existing+"/html/*_corner.html"):
......@@ -159,7 +160,7 @@ def copy_files(opts):
# copy over the config file
for num, i in enumerate(opts.config):
if opts.webdir not in i:
shutil.copyfile(i, opts.webdir+"/config/%s" %(i.split("/")[-1]))
shutil.copyfile(i, opts.webdir+"/config/"+opts.approximant[num]+"_"+i.split("/")[-1])
for num, i in enumerate(opts.samples):
if opts.webdir not in i:
shutil.copyfile(i, opts.webdir+"/samples/"+opts.approximant[num]+"_"+i.split("/")[-1])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment