Skip to content

Commit e152046

Browse files
committed
feat: path fixed
1 parent 70a9bc8 commit e152046

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,12 @@ def addSwagger(apiInstance, appInstance):
6565
selfSrcPath = f"""src{globals.OS_SEPARATOR}service{globals.OS_SEPARATOR}openapi{globals.OS_SEPARATOR}{__name__.split('.')[-1]}.py"""
6666
log.debug(addSwagger, f'selfSrcPath at "{selfSrcPath}"')
6767

68-
apiInstance.documentationFolderPath = f'''{__file__.split(selfSrcPath)[0]}{KW_RESOURCE}{globals.OS_SEPARATOR}{KW_OPEN_API}{KW_UI}{globals.OS_SEPARATOR}'''
68+
apiInstance.documentationFolderPath = f'''{__file__.split(selfSrcPath)[0]}{KW_RESOURCE}{globals.OS_SEPARATOR}{KW_OPEN_API}{KW_UI}'''
6969
log.debug(addSwagger, f'apiInstance.documentationFolderPath at "{apiInstance.documentationFolderPath}"')
7070

71+
# apiInstance.documentationFolderPath = f'''{__file__.split(selfSrcPath)[0]}{KW_RESOURCE}{globals.OS_SEPARATOR}{KW_OPEN_API}{KW_UI}{globals.OS_SEPARATOR}'''
72+
# log.debug(addSwagger, f'apiInstance.documentationFolderPath at "{apiInstance.documentationFolderPath}"')
73+
7174
swaggerUi._static_folder = apiInstance.documentationFolderPath
7275
log.debug(addSwagger, f'swaggerUi._static_folder at "{swaggerUi._static_folder}"')
7376

‎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-60'
3+
version = '0.0.1-61'
44
name = 'python_framework'
55
url = f'https://github.com/SamuelJansen/{name}/'
66

0 commit comments

Comments
 (0)