Skip to content

Commit

Permalink
Fix load dll error in Python 3.7&3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jedore committed Sep 22, 2024
1 parent ef8d727 commit df0af90
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.1.6

2024-09-22

- Fix load dll error in Python 3.7&3.8

## 0.1.5

2024-07-21
Expand Down
2 changes: 1 addition & 1 deletion src/openctp_ctp_channels/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.5'
__version__ = '0.1.6'
14 changes: 7 additions & 7 deletions src/openctp_ctp_channels/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
import requests

CHANNELS = {
'ctp': '上期技术CTPAPI',
'tts': 'openctp TTS 7x24',
'tts-s': 'openctp TTS仿真(接实盘行情)',
'emt': '东方财富EMT',
'xtp': '中泰证券XTP',
'tora': '华鑫证券奇点股票',
'ctp': '上期技术CTP柜台',
'tts': 'openctp TTS柜台 7x24环境',
'tts-s': 'openctp TTS柜台 仿真环境(接实盘行情)',
'emt': '东方财富EMT柜台',
'xtp': '中泰证券XTP柜台',
'tora': '华鑫证券奇点股票柜台',
'qq': '腾讯财经(只有行情)',
'sina': '新浪财经(只有行情)',
}
Expand Down Expand Up @@ -284,7 +284,7 @@ def current_channel(self):
def _del_old_files(self):
for _, _, filenames in os.walk(self._ctp_lib_path):
for filename in filenames:
if not filename.startswith("msvcp140"):
if filename.startswith("thost"):
os.remove(self._ctp_lib_path / filename)

def _copy_libs(self, del_old: bool = True):
Expand Down

0 comments on commit df0af90

Please sign in to comment.