From 00995893f5cf8763b3fc0655d5a4248618048536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 30 Oct 2013 22:13:15 +0100 Subject: [PATCH] If config.py is not in the CWD, error before doing anything --- fdroid | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fdroid b/fdroid index 7c5097ac..677078e6 100755 --- a/fdroid +++ b/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)