diff options
author | Score_Under | 2015-09-03 01:23:46 +0100 |
---|---|---|
committer | Score_Under | 2015-09-03 01:23:46 +0100 |
commit | 42006928a89ba3b6d88b013cf1c531bb13796d7e (patch) | |
tree | 33969023e9ea70666ed2f513bbc8f171ce63eb55 /running-the-server.patch | |
parent | f78ce01eb71c2b3c966b811fae54f4b681018d98 (diff) | |
download | aur-42006928a89ba3b6d88b013cf1c531bb13796d7e.tar.gz |
Update for v172
Diffstat (limited to 'running-the-server.patch')
-rw-r--r-- | running-the-server.patch | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/running-the-server.patch b/running-the-server.patch index 4b64185c8fed..d3cf804e42d4 100644 --- a/running-the-server.patch +++ b/running-the-server.patch @@ -1,22 +1,31 @@ diff --git a/include/ClientGUI.py b/include/ClientGUI.py -index af0afba..c885196 100755 +index a4be697..1319e86 100755 --- a/include/ClientGUI.py +++ b/include/ClientGUI.py -@@ -244,18 +244,7 @@ class FrameGUI( ClientGUICommon.FrameThatResizes ): +@@ -242,27 +242,7 @@ class FrameGUI( ClientGUICommon.FrameThatResizes ): - my_scriptname = sys.argv[0] + HydrusData.ShowText( u'Starting server\u2026' ) -- if my_scriptname.endswith( 'pyw' ): +- if HC.PLATFORM_WINDOWS: - -- if HC.PLATFORM_WINDOWS or HC.PLATFORM_OSX: python_bin = 'pythonw' -- else: python_bin = 'python' -- -- subprocess.Popen( [ python_bin, HC.BASE_DIR + os.path.sep + 'server.pyw' ] ) +- my_exe = HC.BASE_DIR + os.path.sep + 'client.exe' - - else: - +- my_exe = HC.BASE_DIR + os.path.sep + 'client' +- +- +- if sys.executable == my_exe: +- - if HC.PLATFORM_WINDOWS: subprocess.Popen( [ HC.BASE_DIR + os.path.sep + 'server.exe' ] ) -- else: subprocess.Popen( [ './' + HC.BASE_DIR + os.path.sep + 'server' ] ) +- else: subprocess.Popen( [ '.' + HC.BASE_DIR + os.path.sep + 'server' ] ) +- +- else: +- +- if HC.PLATFORM_WINDOWS or HC.PLATFORM_OSX: python_bin = 'pythonw' +- else: python_bin = 'python' +- +- subprocess.Popen( [ python_bin, HC.BASE_DIR + os.path.sep + 'server.py' ] ) - + subprocess.Popen( ["hydrus-server"] ) |