mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-11-30 19:08:48 +08:00
importdata.py在找不到importdata可执行文件时,在当前目录下寻找
This commit is contained in:
parent
e891b40c0c
commit
d1305099a5
@ -39,7 +39,12 @@ if __name__ == "__main__":
|
||||
print("%.2fm" % ((endtime-starttime)/60))
|
||||
|
||||
print("\n")
|
||||
subprocess.call(['importdata'])
|
||||
|
||||
try:
|
||||
subprocess.call(['importdata'])
|
||||
except FileNotFoundError:
|
||||
subprocess.call(['./importdata'])
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user