[units.wesnoth.org] catch empty picture names in add-ons
This commit is contained in:
parent
1eca3736f6
commit
6a287f22c5
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ class ImageCollector:
|
|||
cdir = os.path.normpath(options.config_dir + "/data/add-ons")
|
||||
if ipath.startswith(cdir):
|
||||
ipath = os.path.join(options.addons, ipath[len(cdir):].lstrip("/"))
|
||||
if ipath and os.path.exists(ipath):
|
||||
if ipath and os.path.exists(ipath) and not os.path.isdir(ipath):
|
||||
if no_tc:
|
||||
shutil.copy2(ipath, opath)
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue