mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
f2f93afca1
commit
f8c54a991d
@ -129,8 +129,11 @@ def checkintegrity():
|
||||
def switchdir():
|
||||
dirname = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
os.chdir(dirname)
|
||||
sys.path.append("./")
|
||||
sys.path.append("./userconfig")
|
||||
sys.path.insert(1, "./")
|
||||
sys.path.insert(1, "./userconfig")
|
||||
# 0 是当前目录
|
||||
# 后面的是系统库或runtime
|
||||
# 由于自动更新不会删除,runtime下可能有历史遗留的同名文件被优先导入
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
@ -130,7 +130,7 @@ for dependency in all_dependencies:
|
||||
|
||||
|
||||
with open(os.path.join(runtime, f"python{pyversion2}._pth"), "w") as ff:
|
||||
ff.write(".\n..")
|
||||
ff.write("..\n.")
|
||||
|
||||
copycheck(os.path.join(py37Path, "python3.dll"), runtime)
|
||||
copycheck(os.path.join(py37Path, f"python{pyversion2}.dll"), runtime)
|
||||
|
Loading…
x
Reference in New Issue
Block a user