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

建议:兼容跨端用户 #141

Closed
NoraGithub opened this issue Apr 10, 2023 · 1 comment
Closed

建议:兼容跨端用户 #141

NoraGithub opened this issue Apr 10, 2023 · 1 comment

Comments

@NoraGithub
Copy link
Contributor

为了兼容不同终端的用户,建议尽量不要用绝对地址,用相对地址,而且存储的地址尽量在项目内,而不去污染非项目环境。
例如:
tactic.replay(bars, res_path=r"C:\ts_data_czsc\trade_replay_test_c")

html_path = os.path.join(home_path, signal.key) os.makedirs(html_path, exist_ok=True)

@zengbin93
Copy link
Member

@NoraGithub 没有理解你这里的意思,res_path 之类的都是入参。用相对地址还是绝对地址是用户自己决定的

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

2 participants