From: Mariusz Mazur Date: Sun, 20 Mar 2005 00:51:51 +0000 (+0000) Subject: - fixed braino X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=637d76b9def3166090f2818e69e5cdae42719a2b;p=projects%2Fpld-ftp-admin.git - fixed braino Changed files: modules/common.py -> 1.8 --- diff --git a/modules/common.py b/modules/common.py index 87162df..700005f 100644 --- a/modules/common.py +++ b/modules/common.py @@ -10,8 +10,8 @@ def fileexists(path): return os.path.exists(fullpath) def checkdir(dir): - if not fileexists(sys.argv[1]): - print config.value['ftp_dir']+'/'+sys.argv[1] + " does not exist" + if not fileexists(dir): + print config.value['ftp_dir']+'/' + dir + " does not exist" sys.exit(1) if 'HOME' in os.environ: