sksdump fix. again.

This commit is contained in:
brent s 2017-09-18 03:13:01 -04:00
parent fb7d964516
commit 23a0dfedb1
2 changed files with 5 additions and 2 deletions

1
gpg/kant/.gitignore vendored
View File

@ -1 +1,2 @@
/gpgme.pdf
/tests

View File

@ -113,8 +113,10 @@ def destPrep(args):
if len(os.listdir(thisdir)) == 0:
os.rmdir(thisdir)
for d in dirs:
if len(os.listdir(os.path.join(thisdir, d))) == 0:
os.rmdir(os.path.join(thisdir, d))
_dir = os.path.join(thisdir, d)
if os.path.isdir(_dir):
if len(os.listdir(_dir)) == 0:
os.rmdir(os.path.join(thisdir, d))
#try:
# os.removedirs(sks['destdir']) # Remove empty dirs
#except: