import StatusWindow
-if __name__ == "__main__":
-
- #Check if enough arguments are given
- if len(sys.argv) <= 1:
- print "Please give executeable to debug."
- sys.exit(-1)
-
- #Create the terminals
- clientCmd = string.join(sys.argv[1:])
+def launchDebugger(clientCmd):
+ #Create Terminal
dbgterm = GdbTerminal.GdbTerminal(clientCmd)
#Create windows
+if __name__ == "__main__":
+
+ #Check if enough arguments are given
+ if len(sys.argv) <= 1:
+ print "Please give executeable to debug."
+ sys.exit(-1)
+
+ #Create the terminals
+ clientCmd = string.join(sys.argv[1:])
+ launchDebugger(clientCmd)
+
+