From 509fa6fd0c622454f5b63bddd7a439dc1bb8174d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 22 May 2015 12:00:35 +0200 Subject: [PATCH] use sys.argv[0] --- update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update.py b/update.py index 78599363..53eed22d 100755 --- a/update.py +++ b/update.py @@ -191,8 +191,8 @@ if __name__ == "__main__": os.chdir(join(base, 'pandora')) diff = get('./manage.py', 'sqldiff', '-a').strip() if diff != '-- No differences': - print 'Database has changed, please make a backup and run ./update.py db' + print 'Database has changed, please make a backup and run %s db' % sys.argv[0] elif not development: - print 'pan.do/ra is at the latest stable release,\nyou can run "./update.py dev" to update to the development version' + print 'pan.do/ra is at the latest stable release,\nyou can run "%s dev" to update to the development version' % sys.argv[0] elif current != new: reload_notice(base)