Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lscsoft
PESummary
Commits
8f7677b7
Commit
8f7677b7
authored
Nov 29, 2018
by
Charlie Hoy
Browse files
fixing a few issues with add_to_existing flag
parent
a1919816
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
8f7677b7
...
...
@@ -129,6 +129,7 @@ def run_checks(opts):
logging
.
info
(
"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/*"
):
opts
.
config
.
append
(
i
)
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
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment