diff --git a/wificontrol/__init__.py b/wificontrol/__init__.py new file mode 100644 index 0000000..26ceb84 --- /dev/null +++ b/wificontrol/__init__.py @@ -0,0 +1 @@ +from .wificontrol import wificontrol diff --git a/wificontrol.py b/wificontrol/wificontrol.py similarity index 99% rename from wificontrol.py rename to wificontrol/wificontrol.py index 3761773..9c0442b 100644 --- a/wificontrol.py +++ b/wificontrol/wificontrol.py @@ -495,7 +495,7 @@ def _remove_network_from_wpa_supplicant_file(self, ssid): def _reconfigure(self): try: if self._wpa_supplicant_start: - self._launch("wpa_cli _reconfigure") + self._launch("wpa_cli reconfigure") return True except subprocess.CalledProcessError: return False @@ -600,7 +600,7 @@ def _try_to_connect(self, ssid): def _enable_network(self, network_id): try: - self._launch("wpa_cli _enable_network {}".format( + self._launch("wpa_cli enable_network {}".format( network_id)) return True except subprocess.CalledProcessError: @@ -620,7 +620,7 @@ def _check_correct_connection(self, ssid): def _reconnect(self): try: - self._launch("wpa_cli _reconnect") + self._launch("wpa_cli reconnect") return True except (subprocess.CalledProcessError): return False