fix merge
[stack/code/dboxswitch.git] / dboxswitch / __main__.py
similarity index 98%
rename from __main__.py
rename to dboxswitch/__main__.py
index 58ac693..073db1d 100755 (executable)
@@ -42,7 +42,7 @@ from PyQt4 import QtGui
 
 from settings import appconf
 
-if __name__ == '__main__':
+def main():
     #makes the application quit upon sigint 
     signal.signal(signal.SIGINT, signal.SIG_DFL)
     #Application init
@@ -50,3 +50,8 @@ if __name__ == '__main__':
 
     window = Gui(prManager)
     window.main()
+
+if __name__ == '__main__':
+    main()
+
+