This repository was archived by the owner on Nov 28, 2023. It is now read-only.
改进windows下的兼容性#1354
Open
Pryriat wants to merge 2 commits into
Open
Conversation
added 2 commits
February 12, 2019 17:23
在windows环境下,创建目录位置更改为cobra项目路径/tmp
|
fcntl.txt |
|
windows下的问题不止这些,还有grep之类的,比较麻烦吧...以前提过一个issue,如果感兴趣可以自己改改看 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
win10 1809,python 3.7.2 x86
upgrade cloghandler to concurrent_log_handler
在运行
cobra.py时报以下错误:参考pypi说明,
concurrent_log_handler是cloghandler的新实现。concurrent-log-handler 0.9.12
将
cloghandler替换为concurrent_log_handler,问题解决。文件目录问题
解决上一问题后,报出以下错误
在windows下
/tmp/cobra路径非法,修改为:在初始化code_path前对系统环境进行判断,如果为windows,目录变更为cobra项目目录/tmp。关于
fcntl的建议在windows下没有
fcntl的实现,建议将实现内置于源码中,或者将fcntl置于项目目录下。