Don't check for dirs and files in the main script

This commit is contained in:
Daniel Martí 2013-11-04 18:37:57 +01:00
parent 85d32576eb
commit 429221f282
2 changed files with 3 additions and 8 deletions

View file

@ -867,6 +867,9 @@ def write_metadata(dest, app):
# returned by the parse_metadata function.
def read_metadata(xref=True, package=None):
apps = []
for basedir in ('metadata', 'tmp'):
if not os.path.exists(basedir):
os.makedirs(basedir)
for metafile in sorted(glob.glob(os.path.join('metadata', '*.txt'))):
if package is None or metafile == os.path.join('metadata', package + '.txt'):
try: