Skip to content

Commit

Permalink
desktop windows scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
BenderTrump committed Apr 14, 2017
1 parent 306c75f commit 275bc9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion start.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@echo off
start "" "%~dp0\env86\python-3.4.4\python.exe" "%~dp0\start.pyw"
start "" "%~dp0\env86\python-3.4.4\pythonw.exe" "%~dp0\start.pyw"
13 changes: 6 additions & 7 deletions start.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def main():
app = QApplication(sys.argv)
processes = list()
try:
# sys.path.append("%s\\new_ffmpeg" % cur_path)
# postgres_backup = "%s\\postgres_data_backup" % cur_path
restore_lock = "%s\\restore_fail" % cur_path
restore_fail = False
Expand All @@ -66,7 +65,7 @@ def main():
if restore_fail:
message('Failure', 'Try running update again. If this repeats - contact developers')
sys.exit(-1)
python = cur_path + "\\env86\\python-3.4.4\\python.exe"
python = cur_path + "\\env86\\python-3.4.4\\pythonw.exe"
pserve = cur_path + "\\env86\\python-3.4.4\\Scripts\\pserve.exe"
memcached = cur_path + "\\new_memcached\\memcached.exe"
development = cur_path + "\\lingvodoc_desktop.ini"
Expand All @@ -85,13 +84,13 @@ def main():
# proc_2.terminate()
sleep(5)
my_env = os.environ.copy()
# my_env["PATH"] = my_env["PATH"] + "; %s\\ffmpeg-3.2.4-win32-static\\bin" % cur_path
my_env["PATH"] = my_env["PATH"] + ";D:\\projects\\Lingvodoc-desktop\\new_ffmpeg\\bin"
message('title', my_env["PATH"])
proc_3 = Popen([python, pserve, development], env=my_env)
my_env["PATH"] = my_env["PATH"] + ";%s\\new_ffmpeg\\bin" % cur_path
# my_env["PATH"] = my_env["PATH"] + ";D:\\projects\\Lingvodoc-desktop\\new_ffmpeg\\bin"
# message('title', my_env["PATH"])
proc_3 = Popen([python, pserve, development], env=my_env, creationflags=DETACHED_PROCESS)
sleep(1)
proc_4 = Popen([memcached], creationflags=DETACHED_PROCESS)
# sleep(1)
sleep(1)
proc_1 = Popen(args=[CHROME_PATH, "http://localhost:6543/"])
# processes = (proc_1, proc_2, proc_3) # (proc_1, proc_2, proc_3)
processes = (proc_1, proc_2, proc_3, proc_4) # (proc_1, proc_2, proc_3)
Expand Down

0 comments on commit 275bc9b

Please sign in to comment.