mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
If config.py is not in the CWD, error before doing anything
This commit is contained in:
parent
4c5cd7a360
commit
00995893f5
1 changed files with 4 additions and 0 deletions
4
fdroid
4
fdroid
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue