Skip to content

Commit ace8978

Browse files
committed
new release
1 parent 0d0b677 commit ace8978

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎python_framework/api/src/service/openapi/OpenApiManager.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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__}"''')

‎setup.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from distutils.core import setup
22

3-
version = '0.0.1-41'
3+
version = '0.0.1-42'
44
name = 'python_framework'
55
url = f'https://github.com/SamuelJansen/{name}/'
66

0 commit comments

Comments
 (0)