Skip to content

Commit e53b501

Browse files
apps.py: fix script name
1 parent 9ab4152 commit e53b501

File tree

1 file changed

+1
-1
lines changed
  • internal_filesystem/lib/mpos

1 file changed

+1
-1
lines changed

internal_filesystem/lib/mpos/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# Run the script in the current thread:
1414
def execute_script(script_source, is_file, is_launcher, is_graphical):
1515
thread_id = _thread.get_ident()
16+
compile_name = 'script' if not is_file else script_source
1617
print(f"Thread {thread_id}: executing script")
1718
try:
1819
if is_file:
@@ -45,7 +46,6 @@ def execute_script(script_source, is_file, is_launcher, is_graphical):
4546
}
4647
print(f"Thread {thread_id}: starting script")
4748
try:
48-
compile_name = 'script' if not is_file else long_path_to_filename(script_source) # Only filename, to avoid 'name too long' error
4949
compiled_script = compile(script_source, compile_name, 'exec')
5050
exec(compiled_script, script_globals)
5151
except Exception as e:

0 commit comments

Comments
 (0)