forked from orbit-oss/flask
Changing instance_root to instance_path
This commit is contained in:
parent
eb6a244a89
commit
e4d9ccd6ec
1 changed files with 1 additions and 1 deletions
|
|
@ -375,7 +375,7 @@ file from the instance folder with :meth:`Flask.open_instance_resource`.
|
|||
|
||||
Example usage for both::
|
||||
|
||||
filename = os.path.join(app.instance_root, 'application.cfg')
|
||||
filename = os.path.join(app.instance_path, 'application.cfg')
|
||||
with open(filename) as f:
|
||||
config = f.read()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue