Commit e894ead6 authored by ARCHER's avatar ARCHER 💬
Browse files

check non empty dir + gitignore

parent 3148abba
build/
dist/
*.egg-info
.project
/.pydevproject
.metadata
*.pyc
......@@ -263,9 +263,12 @@ def sar2path(name,skip=False,prefix=default_prefix):
if skip:
found=False
for path in paths:
if os.path.exists("%s/manifest.safe" % path):
found=True
break
try:
if os.listdir(path): # non empty dir
found=True
break
except:
pass
if found:
return path
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment