summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/startSoftware.py
diff options
context:
space:
mode:
Diffstat (limited to 'notFinishedCode/startSoftware.py')
-rw-r--r--notFinishedCode/startSoftware.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/notFinishedCode/startSoftware.py b/notFinishedCode/startSoftware.py
deleted file mode 100644
index 3d48047..0000000
--- a/notFinishedCode/startSoftware.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import ServerClass
-import subprocess
-import sys
-import os
-def restart_program():
- """Restarts the current program.
- Note: this function does not return. Any cleanup action (like
- saving data) must be done before calling this function."""
- python = sys.executable
- os.execl(python, python, * sys.argv)
-
-while 1:
- server = ServerClass.ServerHandler(34600)
- tried = server.openSocket()
-
- test = server.receiveData(2)
- if test == 'START APP':
- print 'start'
- subprocess.Popen(args=['gnome-terminal','--command= python /home/gsmselftest/gsm-selftest/For\ Weekly\ Test/tricode/gsmselftest-website2.py'])
- print server.closeConnection()
- del server
- restart_program()