Skip to content

Commit

Permalink
Remove broken/superseeded stuff and imports from blueproximity.__main…
Browse files Browse the repository at this point in the history
…__.main
  • Loading branch information
Thor77 committed Aug 24, 2016
1 parent 13ad1f6 commit 12260c3
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions blueproximity/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from xdg import BaseDirectory

import blueproximity.config
import gtk
from blueproximity import APP_NAME, Proximity, ProximityGUI
from blueproximity import APP_NAME, ProximityGUI


def cli():
Expand All @@ -31,19 +30,9 @@ def main():
BaseDirectory.save_config_path(APP_NAME), 'config.ini')
configuration = blueproximity.config.load(config_path)

# start Proximity-thread
proximity = Proximity(configuration)
proximity.start()

if args.gui:
# start GUI
ProximityGUI(configuration)

# make GTK threadable
gtk.gdk.threads_init()

# aaaaand action!
gtk.main()

if __name__ == '__main__':
main()

0 comments on commit 12260c3

Please sign in to comment.