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

fix:fix path of zd in GetExeDir method #10

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

berstpander
Copy link
Contributor

运行"go run src/zd.go -c demo/t.yaml"出现"... is not a vaild ZenData dir."错误.
由config.go文件的InitConfig方法报错,是因为当在mac平台上,file.go文件的路径是写死的。
对于不同的用户来说,路径肯定是不一样的,所以这里将写死的路径去掉,改为自动获取路径更为合适。

运行"go run src/zd.go -c demo/t.yaml"出现"... is not a vaild ZenData dir."错误,由config.go文件的InitConfig方法爆出,
是因为在mac平台上,file.go文件的路径是写死的,注释之后就正常了。
@aaronchen2k aaronchen2k merged commit 8d7b7ea into easysoft:master Jul 20, 2021
@easysoft
Copy link
Collaborator

谢谢反馈。:)

@berstpander berstpander deleted the bugfix-zdpath branch August 26, 2021 12:53
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

Successfully merging this pull request may close these issues.

3 participants