summaryrefslogtreecommitdiff
path: root/examples/elementtree/pickle.py
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2009-04-13 03:23:19 +0000
committerMichael Trier <mtrier@gmail.com>2009-04-13 03:23:19 +0000
commitb5ad47271e68a30b2acd8f990af331de8e1069f3 (patch)
tree3f5e960ae01b98bf4b013afc951f20415748cec1 /examples/elementtree/pickle.py
parenteba7328c46202af92de63d2b019bb2e4892255b7 (diff)
downloadsqlalchemy-b5ad47271e68a30b2acd8f990af331de8e1069f3.tar.gz
Cleaned up the deprecation problems with the examples.
Diffstat (limited to 'examples/elementtree/pickle.py')
-rw-r--r--examples/elementtree/pickle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/elementtree/pickle.py b/examples/elementtree/pickle.py
index 53d2ee2b6..220bb2295 100644
--- a/examples/elementtree/pickle.py
+++ b/examples/elementtree/pickle.py
@@ -49,7 +49,7 @@ mapper(Document, documents)
###### time to test ! #########
# get ElementTree document
-filename = os.path.join(os.path.dirname(sys.argv[0]), "test.xml")
+filename = os.path.join(os.path.dirname(__file__), "test.xml")
doc = ElementTree.parse(filename)
# save to DB