9411: Creating New DB-API family tree creates an extra __init__.py in the new database directory.

This commit is contained in:
Doug Blank 2016-04-25 21:43:32 -04:00
parent b526a41af1
commit 344f953c0b

View File

@ -68,6 +68,8 @@ class DBAPI(DbGeneric):
"dbapi_support", "defaults") "dbapi_support", "defaults")
LOG.debug("Copy defaults from: " + defaults) LOG.debug("Copy defaults from: " + defaults)
for filename in os.listdir(defaults): for filename in os.listdir(defaults):
if filename in ["__init__.py"]: # skip these
continue
fullpath = os.path.abspath(os.path.join(defaults, filename)) fullpath = os.path.abspath(os.path.join(defaults, filename))
if os.path.isfile(fullpath): if os.path.isfile(fullpath):
shutil.copy2(fullpath, directory) shutil.copy2(fullpath, directory)