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()