Fixed scripts with simlinks.
This commit is contained in:
@@ -235,6 +235,7 @@ class CommandManager:
|
||||
return False
|
||||
command_list = sorted(glob.glob(os.path.join(script_path, "*")))
|
||||
sub_command = fenrir_path + "/commands/commands/subprocess.py"
|
||||
path_script_names = set()
|
||||
for command in command_list:
|
||||
try:
|
||||
if not os.path.isfile(command):
|
||||
@@ -283,7 +284,7 @@ class CommandManager:
|
||||
)
|
||||
self.env["bindings"][shortcut_key] = command_name
|
||||
self.env["rawBindings"][shortcut_key] = shortcut
|
||||
loaded_script_names.add(script_name)
|
||||
path_script_names.add(script_name)
|
||||
self.env["runtime"]["DebugManager"].write_debug_out(
|
||||
"Load script:" + section + "." + command_name,
|
||||
debug.DebugLevel.INFO,
|
||||
@@ -297,6 +298,7 @@ class CommandManager:
|
||||
str(e), debug.DebugLevel.ERROR
|
||||
)
|
||||
continue
|
||||
loaded_script_names.update(path_script_names)
|
||||
return True
|
||||
|
||||
def get_script_name(self, file_name):
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
# By Chrys, Storm Dragon, and contributors.
|
||||
|
||||
version = "2026.05.12"
|
||||
code_name = "testing"
|
||||
code_name = "master"
|
||||
|
||||
Reference in New Issue
Block a user