mirror of
https://github.com/Stone-Red-Code/HotspotAutoLogin.git
synced 2026-11-01 23:05:40 +01:00
v1.90fix2
This commit is contained in:
@@ -21,7 +21,11 @@ dns.resolver.default_resolver = dns.resolver.Resolver()
|
||||
from urllib3.exceptions import InsecureRequestWarning
|
||||
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)
|
||||
|
||||
|
||||
################################# REMOVE THIS BEFORE USING PYINSTALLER #################################
|
||||
# Change the current working directory to the script's directory
|
||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
os.chdir(script_dir)
|
||||
################################# REMOVE THIS BEFORE USING PYINSTALLER #################################
|
||||
|
||||
# Program Information
|
||||
program_name = "HotspotAutoLogin"
|
||||
@@ -1005,4 +1009,4 @@ if __name__ == '__main__':
|
||||
# Start the network status checking in the main thread
|
||||
check_network_status()
|
||||
# Wait for all threads to finish
|
||||
tray_thread.join()
|
||||
tray_thread.join()
|
||||
|
||||
Reference in New Issue
Block a user