mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
0af1ae1d8e
+ fix #193 (settings https redirect) + fix open api docs on binary + fix git error on binary + remove flask-restful hopefully, I didn't break something 😩
13 lines
308 B
Python
13 lines
308 B
Python
import sys
|
|
|
|
|
|
def getFlaskOpenApiPath():
|
|
"""
|
|
Used to retrieve the path to the flask_openapi3 package
|
|
|
|
See: https://github.com/luolingchun/flask-openapi3/issues/147
|
|
"""
|
|
site_packages_path = [p for p in sys.path if "site-packages" in p][0]
|
|
|
|
return f"{site_packages_path}/flask_openapi3"
|