]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
specify run as module here
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 7 Dec 2013 22:37:36 +0000 (17:37 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 7 Dec 2013 22:37:58 +0000 (17:37 -0500)
examples/dogpile_caching/__init__.py

index 00c386bda9c2b07f18bb090a1570c1969cf638d1..e9b3eb8f646d1686199e8a1ef11f5156cf55d610 100644 (file)
@@ -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
 
 
 Listing of files: