diff --git a/HotspotAutoLogin.pyw b/HotspotAutoLogin.pyw index 975009a..dbf7334 100644 --- a/HotspotAutoLogin.pyw +++ b/HotspotAutoLogin.pyw @@ -76,7 +76,7 @@ def refresh_profile_details(): # Function to open the config file def open_config(): - os.system("config.json") + subprocess.Popen(["start", "config.json"], shell=True) # Load configuration from file with open("config.json", "r") as f: @@ -488,4 +488,4 @@ if __name__ == '__main__': check_network_status() # Wait for all threads to finish - tray_thread.join() \ No newline at end of file + tray_thread.join()