Register api and commands with absolute paths

This commit is contained in:
pycook
2023-08-21 20:08:23 +08:00
parent 9e2bf3d1f0
commit 590565bdf0
2 changed files with 2 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class APIView(Resource):
return send_file(*args, **kwargs)
API_PACKAGE = "api"
API_PACKAGE = os.path.abspath(os.path.dirname(__file__))
def register_resources(resource_path, rest_api):