1.1 --- a/tests/test_calendar_stream.py Mon Nov 03 00:48:06 2008 +0100
1.2 +++ b/tests/test_calendar_stream.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, vCalendar
1.7 +import codecs, vCalendar, os
1.8
1.9 -f = codecs.open("tests/test.ics", encoding="utf-8")
1.10 +this_dir = os.path.split(__file__)[0]
1.11 +f = codecs.open(os.path.join(this_dir, "test.ics"), encoding="utf-8")
1.12 out = codecs.open("tmp.ics", "w", encoding="utf-8")
1.13 try:
1.14 doc = vCalendar.iterparse(f)