File tree Expand file tree Collapse file tree
python_framework/api/src/service/openapi Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,12 @@ def addSwagger(apiInstance, appInstance):
6464 )
6565 log .debug (addSwagger , f'''Swagger original static folder at "{ swaggerUi ._static_folder } "''' )
6666 ###- a = 'src\service\openapi\OpenApiManager.py'
67- apiInstance .documentationFolderPath = f'''{ __file__ .split (f'src{ globals .OS_SEPARATOR } service{ globals .OS_SEPARATOR } openapi{ globals .OS_SEPARATOR } { __name__ .split ('.' )[- 1 ]} .py' )} { KW_RESOURCE } { globals .OS_SEPARATOR } { KW_OPEN_API } { KW_UI } { globals .OS_SEPARATOR } '''
67+ selfSrcPath = f"""src{ globals .OS_SEPARATOR } service{ globals .OS_SEPARATOR } openapi{ globals .OS_SEPARATOR } { __name__ .split ('.' )[- 1 ]} .py"""
68+ log .debug (addSwagger , f'''selfSrcPath folder at "{ selfSrcPath } "''' )
69+
70+ apiInstance .documentationFolderPath = f'''{ __file__ .split (selfSrcPath )} { KW_RESOURCE } { globals .OS_SEPARATOR } { KW_OPEN_API } { KW_UI } { globals .OS_SEPARATOR } '''
71+ log .debug (addSwagger , f'''apiInstance.documentationFolderPath folder at "{ apiInstance .documentationFolderPath } "''' )
72+
6873 swaggerUi ._static_folder = apiInstance .documentationFolderPath ###- f'{globals.currentPath}api{globals.OS_SEPARATOR}resource{globals.OS_SEPARATOR}swaggerui{globals.OS_SEPARATOR}'
6974 log .debug (addSwagger , f'''Swagger static folder at "{ swaggerUi ._static_folder } "''' )
7075 log .debug (addSwagger , f'''Swagger lib name "{ __name__ } "''' )
Original file line number Diff line number Diff line change 11from distutils .core import setup
22
3- version = '0.0.1-41 '
3+ version = '0.0.1-42 '
44name = 'python_framework'
55url = f'https://github.com/SamuelJansen/{ name } /'
66
You can’t perform that action at this time.
0 commit comments