mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
If config.py is not in the CWD, error before doing anything
This commit is contained in:
parent
4c5cd7a360
commit
00995893f5
4
fdroid
4
fdroid
@ -51,6 +51,10 @@ def main():
|
|||||||
print_help()
|
print_help()
|
||||||
sys.exit(1)
|
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'):
|
for basedir in ('metadata', 'tmp'):
|
||||||
if not os.path.exists(basedir):
|
if not os.path.exists(basedir):
|
||||||
os.makedirs(basedir)
|
os.makedirs(basedir)
|
||||||
|
Loading…
Reference in New Issue
Block a user