From: Mike Bayer Date: Sat, 7 Dec 2013 22:37:36 +0000 (-0500) Subject: specify run as module here X-Git-Tag: rel_0_9_0~46^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d7da0dfb7a776f6102116332caae1b8ea92674c4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git specify run as module here --- diff --git a/examples/dogpile_caching/__init__.py b/examples/dogpile_caching/__init__.py index 2d986584b5..bf67eeb177 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, \