diff --git a/SMS-Exchange-Linux-GUI/GUI.py b/SMS-Exchange-Linux-GUI/GUI.py index 914f935..414917b 100755 --- a/SMS-Exchange-Linux-GUI/GUI.py +++ b/SMS-Exchange-Linux-GUI/GUI.py @@ -37,7 +37,6 @@ import json # error log, which line: import traceback -import interact_with_rest_of_app.which_profile_is_being_used as which_profile_module # GUI visual: from PyQt6.QtWidgets import QApplication, QWidget, QVBoxLayout, QLabel, QComboBox, QPushButton, QSizePolicy, QMessageBox, QListWidget, QGridLayout, QHBoxLayout, QComboBox, QMainWindow, QInputDialog, QLineEdit diff --git a/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/__pycache__/process_the_proxy.cpython-312.pyc b/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/__pycache__/process_the_proxy.cpython-312.pyc old mode 100644 new mode 100755 index 274c838..0abe99e Binary files a/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/__pycache__/process_the_proxy.cpython-312.pyc and b/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/__pycache__/process_the_proxy.cpython-312.pyc differ diff --git a/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/__pycache__/which_profile_is_being_used.cpython-312.pyc b/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/__pycache__/which_profile_is_being_used.cpython-312.pyc old mode 100644 new mode 100755 index 96b7510..e509ab9 Binary files a/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/__pycache__/which_profile_is_being_used.cpython-312.pyc and b/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/__pycache__/which_profile_is_being_used.cpython-312.pyc differ diff --git a/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/process_the_proxy.py b/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/process_the_proxy.py index f8b43ec..4a65530 100755 --- a/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/process_the_proxy.py +++ b/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/process_the_proxy.py @@ -3,11 +3,6 @@ import json from core.Constants import Constants import interact_with_rest_of_app.which_profile_is_being_used as which_profile_module -current_profile_number = which_profile_module.which_profile_is_being_used() - -print('the current profile number is: ', current_profile_number) -print('the path is: ', Constants.HV_PROFILE_CONFIG_HOME) - def process_the_proxy(returned_data_as_a_dictionary): proxy_ip_address_in_GUI = returned_data_as_a_dictionary.get( @@ -30,7 +25,6 @@ def process_the_proxy(returned_data_as_a_dictionary): } current_profile_number = which_profile_module.which_profile_is_being_used() - print('the current profile number is: ', current_profile_number) custom_path = f'{Constants.HV_PROFILE_CONFIG_HOME}/{current_profile_number}/proxyTEST.json' # Ensure the directory exists diff --git a/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/which_profile_is_being_used.py b/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/which_profile_is_being_used.py index e2bedee..2cbc43e 100755 --- a/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/which_profile_is_being_used.py +++ b/SMS-Exchange-Linux-GUI/interact_with_rest_of_app/which_profile_is_being_used.py @@ -1,21 +1,9 @@ import sys -if len(sys.argv) > 1: - try: - print('the profile id is: ', sys.argv[1]) - assigned_profile_id = int(sys.argv[1]) - except ValueError: - print('Error: Profile ID must be an integer.') - sys.exit(1) -else: - print('Error: No profile ID provided.') - sys.exit(1) - def which_profile_is_being_used(): if len(sys.argv) > 1: try: - print('the profile id is: ', sys.argv[1]) return int(sys.argv[1]) except ValueError: print('Error: Profile ID must be an integer.')