From 76fccf55e30cbf7d032238852ab709e7aec83eeb Mon Sep 17 00:00:00 2001 From: nanoric Date: Fri, 22 Mar 2019 01:05:31 -0400 Subject: [PATCH] [Mod] update generate scripts --- vnpy/api/ctp/generator/generate_api_functions.py | 4 ++-- vnpy/api/ctp/generator/generate_data_type.py | 2 +- vnpy/api/ctp/generator/generate_struct.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vnpy/api/ctp/generator/generate_api_functions.py b/vnpy/api/ctp/generator/generate_api_functions.py index 6d868a8f..d10ce403 100644 --- a/vnpy/api/ctp/generator/generate_api_functions.py +++ b/vnpy/api/ctp/generator/generate_api_functions.py @@ -336,8 +336,8 @@ class ApiGenerator: if __name__ == "__main__": - md_generator = ApiGenerator("ThostFtdcMdApi.h", "ctp", "md", "MdApi") + md_generator = ApiGenerator("../include/ctp/ThostFtdcMdApi.h", "ctp", "md", "MdApi") md_generator.run() - td_generator = ApiGenerator("ThostFtdcTraderApi.h", "ctp", "td", "TdApi") + td_generator = ApiGenerator("../include/ctp/ThostFtdcTraderApi.h", "ctp", "td", "TdApi") td_generator.run() diff --git a/vnpy/api/ctp/generator/generate_data_type.py b/vnpy/api/ctp/generator/generate_data_type.py index 3ebd6543..2c8f9173 100644 --- a/vnpy/api/ctp/generator/generate_data_type.py +++ b/vnpy/api/ctp/generator/generate_data_type.py @@ -72,5 +72,5 @@ class DataTypeGenerator: if __name__ == "__main__": - generator = DataTypeGenerator("ThostFtdcUserApiDataType.h", "ctp") + generator = DataTypeGenerator("../include/ctp/ThostFtdcUserApiDataType.h", "ctp") generator.run() diff --git a/vnpy/api/ctp/generator/generate_struct.py b/vnpy/api/ctp/generator/generate_struct.py index f78844f2..db744756 100644 --- a/vnpy/api/ctp/generator/generate_struct.py +++ b/vnpy/api/ctp/generator/generate_struct.py @@ -80,5 +80,5 @@ class StructGenerator: if __name__ == "__main__": - generator = StructGenerator("ThostFtdcUserApiStruct.h", "ctp") + generator = StructGenerator("../include/ctp/ThostFtdcUserApiStruct.h", "ctp") generator.run()