Skip to content

Commit

Permalink
Fix reference to app.instance_root
Browse files Browse the repository at this point in the history
The attribute is called app.instance_path.
  • Loading branch information
wjt authored and maxcountryman committed Dec 16, 2015
1 parent a3600e5 commit 353482a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ the instance directory's ``uploads`` folder - you can pass a ``default_dest``
callable to the set constructor. It takes the application as its argument.
For example::

media = UploadSet('media', default_dest=lambda app: app.instance_root)
media = UploadSet('media', default_dest=lambda app: app.instance_path)

This won't prevent a different destination from being set in the config,
though. It's just to save your users a little configuration time.
Expand Down

0 comments on commit 353482a

Please sign in to comment.