更新 files_utils.py

master
wangsiyuan 2023-10-11 16:45:35 +08:00
parent 4b174c9f3e
commit 7dd5c0d661
1 changed files with 3 additions and 2 deletions

View File

@ -10,5 +10,6 @@ def get_path(script_name):
return script_path return script_path
def read_javascript(script_path): def read_javascript(script_path):
with open(script_path, "r") as file:
script_code = file.read()
return script_code