From ce894b0a649a1722a798a020492a0c9723c70dfa Mon Sep 17 00:00:00 2001 From: ! Freaku <92618708+Freaku17@users.noreply.github.com> Date: Mon, 5 Feb 2024 01:39:03 +0530 Subject: [PATCH] Update `terminal.py` for 1.7.33+ support --- Utilities/terminal.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Utilities/terminal.py b/Utilities/terminal.py index b7b9d65..b0b9487 100644 --- a/Utilities/terminal.py +++ b/Utilities/terminal.py @@ -81,7 +81,7 @@ import bascenev1 as bs import bauiv1 as bui from efro.log import LogLevel from bauiv1lib.fileselector import FileSelectorWindow -folder = _babase.app.python_directory_user + "/console/" +folder = _babase.app.env.python_directory_user + "/console/" log_post = folder + 'logs.txt' config_post = folder + 'config.txt' @@ -113,7 +113,7 @@ def make_sys_wordaround(path): # Luckily we are still able to write files. # So as a "workaround" we create a zip of in-game folders and unzip them :D from shutil import make_archive, unpack_archive, rmtree - sys_zip = make_archive(folder+'sys_zip', 'zip', _babase.app.python_directory_app) + sys_zip = make_archive(folder+'sys_zip', 'zip', _babase.app.env.python_directory_app) unpack_archive(sys_zip, path) os.remove(sys_zip) @@ -157,7 +157,7 @@ class get_logs(babase.Plugin): class get_config(babase.Plugin): def __init__(self): make_folder() - configs = babase.app.config_file_path + configs = babase.app.env.config_file_path with open(configs) as f: make_config(f.read()) f.close() @@ -169,7 +169,7 @@ class system_scripts(babase.Plugin): return True def show_settings_ui(self, source_widget): - path = _babase.app.python_directory_user +'/sys/'+_babase.app.version + path = _babase.app.env.python_directory_user +'/sys/'+_babase.app.env.version if not os.path.exists(path): # Old method: # import babase.modutils as utils