Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

一个建议:命令行启动的时候,可以带一个参数,这个参数为带路径的配置文件名 #126

Open
johnwas opened this issue Aug 26, 2023 · 0 comments

Comments

@johnwas
Copy link

johnwas commented Aug 26, 2023

一个建议:
命令行启动的时候,可以带一个参数,这个参数为带路径的配置文件名, 比如类似

python MainServer.py --config=/opt/qqflacmusicdownload.conf

因为代码里面对配置文件config.cfg的获取是用的 with open("config.cfg", "w+"),这个当前目录和操作系统以及启动方式有关,比如在linux和openwrt下用启动时,这个目录会有不同。
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant