windows下查看配置模板代码不完整
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 5.7k
- PR merge metrics
- No merged PRs in 30d
Description
datax.py脚本中变量readerTemplatePath和writerTemplatePath写死成linux格式的地址间隔符,windows下运行会报错。建议修改:
readerTemplatePath = "%s/plugin/reader/%s/plugin_job_template.json" % (DATAX_HOME,reader)
writerTemplatePath = "%s/plugin/writer/%s/plugin_job_template.json" % (DATAX_HOME,writer)
if isWindows():
readerTemplatePath = "%s\\plugin\\reader\\%s\\plugin_job_template.json" % (DATAX_HOME,reader)
writerTemplatePath = "%s\\plugin\\writer\\%s\\plugin_job_template.json" % (DATAX_HOME,writer)
print "run in windows or linux"
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in datax.py and inspect how readerTemplatePath and writerTemplatePath are assembled from DATAX_HOME, reader, and writer. Reproduce the template lookup on Windows and verify that the configuration template can be viewed successfully without path-separator errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100