tests/test_card.py | raw changeset files shortlog |
1.1 --- a/tests/test_card.py Mon Nov 03 00:48:06 2008 +0100 1.2 +++ b/tests/test_card.py Thu Jan 15 23:39:48 2009 +0100 1.3 @@ -1,8 +1,9 @@ 1.4 #!/usr/bin/env python 1.5 1.6 -import codecs, vContent 1.7 +import codecs, vContent, os 1.8 1.9 -f = codecs.open("tests/test.vcf", encoding="utf-8") 1.10 +this_dir = os.path.split(__file__)[0] 1.11 +f = codecs.open(os.path.join(this_dir, "test.vcf"), encoding="utf-8") 1.12 doc = vContent.parse(f) 1.13 1.14 # vim: tabstop=4 expandtab shiftwidth=4