mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-16 16:45:32 +01:00
Zip/tarball update test
This commit is contained in:
@@ -95,9 +95,10 @@ def main():
|
||||
|
||||
if headphones.LAUNCH_BROWSER and not args.nolaunch:
|
||||
headphones.launch_browser(headphones.HTTP_HOST, http_port, headphones.HTTP_ROOT)
|
||||
|
||||
|
||||
# Start the background threads
|
||||
headphones.start()
|
||||
|
||||
|
||||
return
|
||||
|
||||
|
||||
@@ -36,6 +36,6 @@ There are still a few things that I'm working on:
|
||||
|
||||
If you run into any more issues, visit http://github.com/rembo10/headphones and report an issue.
|
||||
|
||||
This is free software so feel free to use it/modify it as you wish. The code is messy, but it works :-)
|
||||
This is free software so feel free to use it/modify it as you wish.
|
||||
|
||||
If you have any ideas for the next release, also make sure to post that here!
|
||||
@@ -225,7 +225,8 @@ def initialize():
|
||||
except Exception, e:
|
||||
logger.error("Can't connect to the database: %s" % e)
|
||||
|
||||
# Get the currently installed version
|
||||
# Get the currently installed version - returns None, 'win32' or the git hash
|
||||
# Also sets INSTALL_TYPE variable to 'win', 'git' or 'source'
|
||||
CURRENT_VERSION = versioncheck.getVersion()
|
||||
|
||||
__INITIALIZED__ = True
|
||||
@@ -394,9 +395,13 @@ def shutdown(restart=False, update=False):
|
||||
|
||||
popen_list = [sys.executable, FULL_PATH]
|
||||
popen_list += ARGS
|
||||
if '--nolaunch' not in popen_list:
|
||||
popen_list += ['--nolaunch']
|
||||
#if '--nolaunch' not in popen_list:
|
||||
# popen_list += ['--nolaunch']
|
||||
logger.info('Restarting Headphones with ' + str(popen_list))
|
||||
subprocess.Popen(popen_list, cwd=os.getcwd())
|
||||
|
||||
os._exit(0)
|
||||
os._exit(0)
|
||||
|
||||
def refresh():
|
||||
|
||||
raise cherrypy.HTTPRedirect("home")
|
||||
Reference in New Issue
Block a user