Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Fix wireless_toggle function
Browse files Browse the repository at this point in the history
Close #23

and bump the version number for a new release
  • Loading branch information
Clayton Burlison committed Mar 15, 2017
1 parent d03b058 commit be87dcc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgroot/Library/Application Support/pinpoint/bin/pinpoint
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ from Foundation import (NSRunLoop,


__author__ = 'Clayton Burlison (https://clburlison.com)'
__version__ = '1.0.2.80'
__version__ = '1.0.3.81'

# Our preferences "bundle_id"
BUNDLE_ID = 'com.clburlison.pinpoint'
Expand Down Expand Up @@ -522,6 +522,13 @@ class script_runner(object):

class wireless(object):
"""All functions related to our Mac's wireless."""
# required for toggle_wireless however we don't want to load the bundle
# twice so we load it here
bundle_path = '/System/Library/Frameworks/CoreWLAN.framework'
objc.loadBundle('CoreWLAN',
bundle_path=bundle_path,
module_globals=globals())

def get_wireless_interface(self):
"""Returns the wireless interface device name or None if
no adapter found (e.g., en0 or en1)."""
Expand Down

0 comments on commit be87dcc

Please sign in to comment.