Ejemplo n.º 1
0
def try_switch_bt_on():
    try:
        import pybtswitch
        if not pybtswitch.get_power_state():
            pybtswitch.set_power_state(1)
    except:
        pass
Ejemplo n.º 2
0
import pybtswitch
print(repr(pybtswitch.get_power_state()))
print "all done"