From: Henrik Tunedal Date: Thu, 17 Feb 2011 21:19:36 +0000 (+0100) Subject: Change search path for getsig X-Git-Tag: 0.1~1464^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c7676f29762d4ab828ef2b7ba9d5987407318420;p=fdroidserver.git Change search path for getsig The path to getsig is now relative to that of the script itself; the path to the APK files remains relative to the current working directory. --- diff --git a/update.py b/update.py index fa8c1d15..2aa09c0d 100755 --- a/update.py +++ b/update.py @@ -151,8 +151,10 @@ for apkfile in glob.glob(os.path.join('repo','*.apk')): f.close() # Get the signature (or md5 of, to be precise)... - p = subprocess.Popen(['java', 'getsig', os.path.join('..', apkfile)] - , cwd='getsig', stdout=subprocess.PIPE) + p = subprocess.Popen(['java', 'getsig', + os.path.join(os.getcwd(), apkfile)], + cwd=os.path.join(sys.path[0], 'getsig'), + stdout=subprocess.PIPE) output = p.communicate()[0] if options.verbose: print output