1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-07 09:50:07 +02:00

If config.py is not in the CWD, error before doing anything

This commit is contained in:
Daniel Martí 2013-10-30 22:13:15 +01:00
parent 4c5cd7a360
commit 00995893f5

4
fdroid
View File

@ -51,6 +51,10 @@ def main():
print_help()
sys.exit(1)
if not os.path.isfile('config.py'):
print "ERROR: No config.py configuration file present"
sys.exit(2)
for basedir in ('metadata', 'tmp'):
if not os.path.exists(basedir):
os.makedirs(basedir)