hamster-applet r768 - trunk/tests



Author: tbaugis
Date: Sat Feb 21 13:09:08 2009
New Revision: 768
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=768&view=rev

Log:
fixed path for imports

Modified:
   trunk/tests/charting_test.py

Modified: trunk/tests/charting_test.py
==============================================================================
--- trunk/tests/charting_test.py	(original)
+++ trunk/tests/charting_test.py	Sat Feb 21 13:09:08 2009
@@ -1,4 +1,6 @@
-import sys; sys.path.insert(0, "../..")
+import sys, os.path
+# a convoluted line to add hamster module to absolute path
+sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
 
 import unittest
 from hamster import charting



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]