forked from orbit-oss/flask
Merge pull request #342 from Cixelyn/master
Config documentation "instance_root" -> "instance_path"
This commit is contained in:
commit
5a7c02b541
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