Add export keyword to all environment variables in settings.env.default
This commit is contained in:
parent
2ff5a192ca
commit
fa0a1fd930
2 changed files with 20 additions and 20 deletions
|
@ -4,11 +4,11 @@ import signal
|
|||
import time
|
||||
from collections import defaultdict
|
||||
from scapy.all import sniff, Dot11, RadioTap
|
||||
from dotenv import load_dotenv
|
||||
from dotenv import dotenv_values
|
||||
|
||||
# === Load ENV ===
|
||||
load_dotenv(dotenv_path=os.path.expanduser("~/wifi_test/settings.env"))
|
||||
LISTEN_INTERFACE = os.getenv("LISTEN_INTERFACE", "wlan0")
|
||||
config = dotenv_values(os.path.expanduser("~/wifi_test/settings.env"))
|
||||
LISTEN_INTERFACE = config.get("LISTEN_INTERFACE", "wlan0")
|
||||
|
||||
# === Globals ===
|
||||
clients_per_channel = defaultdict(set)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue