use sys.argv[0]

This commit is contained in:
j 2015-05-22 12:00:35 +02:00
parent d4a7ec0e0c
commit 509fa6fd0c

View file

@ -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)