diff --git a/src/packages/buskill/root_child_mac.py b/src/packages/buskill/root_child_mac.py index 290eb405..c84f42e4 100644 --- a/src/packages/buskill/root_child_mac.py +++ b/src/packages/buskill/root_child_mac.py @@ -167,43 +167,9 @@ def trigger_softshutdown_mac_halt(): # * https://github.com/BusKill/buskill-app/issues/14#issuecomment-1279975783 # * https://github.com/BusKill/buskill-app/issues/77#issuecomment-2254299923 -msg = "sys.path:|" +str(sys.path)+ "|" -logging.info(msg) - -msg = "sys.argv:|" +str(sys.argv)+ "|" -logging.info(msg) - -msg = "sys.executable:|" +str(sys.executable)+ "|" -logging.info(msg) - -msg = "sys.prefix:|" +str(sys.prefix)+ "|" -logging.info(msg) - -msg = "os.environ:|" +str(os.environ)+ "|" -logging.info(msg) - -msg = "os.getcwd():|" +str(os.getcwd())+ "|" -logging.info(msg) - -msg = "__file__:|" +str(__file__)+ "|" -logging.info(msg) - -msg = "sys._getframe().f_code.co_filename:|" +str(sys._getframe().f_code.co_filename)+ "|" -logging.info(msg) - -import inspect -msg = "inspect.getfile(inspect.currentframe()):|" +str(inspect.getfile(inspect.currentframe()))+ "|" -logging.info(msg) - -msg = "inspect.stack():|" +str(inspect.stack())+ "|" -logging.info(msg) - -msg = "inspect.getfile(inspect.currentframe()):|" +str(inspect.getfile(inspect.currentframe()))+ "|" -logging.info(msg) - -our_filepath = os.path.abspath(__file__) +our_filepath = sys.executable -msg = "Attempting to harden ourselves " +str(our_filepath) +msg = "Attempting to harden " +str(our_filepath) logging.info(msg) try: