Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议修改第18行代码方便编译执行 #175

Open
le45tx1m opened this issue Mar 7, 2024 · 0 comments
Open

建议修改第18行代码方便编译执行 #175

le45tx1m opened this issue Mar 7, 2024 · 0 comments

Comments

@le45tx1m
Copy link

le45tx1m commented Mar 7, 2024

环境信息

粉丝牌助手版本:0.3.8

需要添加的功能内容

建议第18行由
os.chdir(os.path.dirname(os.path.abspath(file)).split(file)[0])
改为
os.chdir(os.path.dirname(os.path.abspath(os.path.realpath(sys.argv[0]))).split(os.path.realpath(sys.argv[0]))[0])

方便用 pyinstaller -F 打包后编译执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant