Skip to content
Browse files

Added main method to main module to be called from turpial executable

  • Loading branch information...
1 parent 53491b8 commit 8c46239b274bf65d4f3ff405eaf546c8077d9572 @satanas committed May 29, 2012
Showing with 5 additions and 2 deletions.
  1. +1 −1 setup.py
  2. +4 −1 turpial/main.py
View
2 setup.py
@@ -53,7 +53,7 @@
},
entry_points={
'console_scripts': [
- 'turpial = turpial.main:Turpial',
+ 'turpial = turpial.main:main',
'turpial-unity-daemon = turpial.ui.unity.daemon:main',
],
},
View
5 turpial/main.py
@@ -100,7 +100,10 @@ def error(self, error):
def exit(self):
pass
-if __name__ == '__main__':
+def main():
subprocess.call(['turpial-unity-daemon', 'start'])
t = Turpial()
subprocess.call(['turpial-unity-daemon', 'stop'])
+
+if __name__ == '__main__':
+ main()

0 comments on commit 8c46239

Please sign in to comment.
Something went wrong with that request. Please try again.