-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[flake8] | ||
max-line-length = 132 | ||
exclude = .git,__pycache__,.eggs/,doc/,docs/,build/,dist/,archive/ | ||
per-file-ignores = | ||
__init__.py:F401 | ||
modules.py:F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
from .base import log_wifi_loc | ||
from .modules import get_signal, parse_signal, cli_config_check | ||
|
||
__all__ = ["log_wifi_loc", "get_signal", "parse_signal", "cli_config_check"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import sys | ||
|
||
if sys.platform == "win32": | ||
from .netsh import cli_config_check, get_signal, parse_signal | ||
elif sys.platform == "linux": | ||
from .netman import cli_config_check, get_signal, parse_signal | ||
elif sys.platform == "darwin": | ||
from .airport import cli_config_check, get_signal, parse_signal | ||
else: | ||
raise ImportError(f"MozLoc doesn't work with platform {sys.platform}") | ||
|
||
match sys.platform: | ||
case "win32": | ||
from .netsh import cli_config_check, get_signal, parse_signal | ||
case "linux": | ||
from .netman import cli_config_check, get_signal, parse_signal | ||
case "darwin": | ||
from .airport import cli_config_check, get_signal, parse_signal | ||
case _: | ||
raise ImportError(f"MozLoc doesn't work with platform {sys.platform}") | ||
|
||
|
||
__all__ = ["cli_config_check", "get_signal", "parse_signal"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters