summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-12-07 17:37:36 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-12-07 17:37:36 -0500
commitd7da0dfb7a776f6102116332caae1b8ea92674c4 (patch)
tree06114fd6644e21e4b8daa8b06d3b84b67859ef74
parent5517c0eef9a1c4228d976584d7d65586b29b2ce9 (diff)
downloadsqlalchemy-d7da0dfb7a776f6102116332caae1b8ea92674c4.tar.gz
specify run as module here
-rw-r--r--examples/dogpile_caching/__init__.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/dogpile_caching/__init__.py b/examples/dogpile_caching/__init__.py
index 2d986584b..bf67eeb17 100644
--- a/examples/dogpile_caching/__init__.py
+++ b/examples/dogpile_caching/__init__.py
@@ -40,15 +40,16 @@ exactly one SQL statement against two tables will be emitted - the
displayed result however will utilize dozens of lazyloads that all
pull from cache.
-The demo scripts themselves, in order of complexity, are run as follows::
+The demo scripts themselves, in order of complexity, are run as Python
+modules so that relative imports work::
- python examples/dogpile_caching/helloworld.py
+ python -m examples.dogpile_caching.helloworld
- python examples/dogpile_caching/relationship_caching.py
+ python -m examples.dogpile_caching.relationship_caching
- python examples/dogpile_caching/advanced.py
+ python -m examples.dogpile_caching.advanced
- python examples/dogpile_caching/local_session_caching.py
+ python -m examples.dogpile_caching.local_session_caching
.. autosource::
:files: environment.py, caching_query.py, model.py, fixture_data.py, \