mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
manager: relax template requirements, allow any collection template to also be added to shared dir
This commit is contained in:
parent
753300d5ed
commit
6bbbb51f6e
@ -246,12 +246,10 @@ directory structure expected by pywb
|
|||||||
try:
|
try:
|
||||||
filename = templates[template_name]
|
filename = templates[template_name]
|
||||||
if not self.coll_name:
|
if not self.coll_name:
|
||||||
msg = ('To {1} a "{0}" template, you must specify ' +
|
full_path = os.path.join(os.getcwd(), filename)
|
||||||
'a collection name: template <coll> --{1} {0}')
|
else:
|
||||||
raise IOError(msg.format(template_name, verb))
|
full_path = os.path.join(self.templates_dir,
|
||||||
|
os.path.basename(filename))
|
||||||
full_path = os.path.join(self.templates_dir,
|
|
||||||
os.path.basename(filename))
|
|
||||||
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user