aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authoreli.bendersky <devnull@localhost>2012-01-20 09:24:32 +0200
committereli.bendersky <devnull@localhost>2012-01-20 09:24:32 +0200
commit665a0bd5c7ce7c9b7be87aed962bb33a541c0850 (patch)
tree7da1c51fccb840dc0db23ff708502ec0df94f54e /examples
parentef7c35f891b7d3c5b798a4f195bced6c32232ff7 (diff)
downloadplatform_external_python_pycparser-665a0bd5c7ce7c9b7be87aed962bb33a541c0850.tar.gz
platform_external_python_pycparser-665a0bd5c7ce7c9b7be87aed962bb33a541c0850.tar.bz2
platform_external_python_pycparser-665a0bd5c7ce7c9b7be87aed962bb33a541c0850.zip
adaptations to execute tests successfully on Windows from the root dir
Diffstat (limited to 'examples')
-rw-r--r--examples/tests/test_c-to-c.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tests/test_c-to-c.py b/examples/tests/test_c-to-c.py
index 2c3ddcc..995944a 100644
--- a/examples/tests/test_c-to-c.py
+++ b/examples/tests/test_c-to-c.py
@@ -3,9 +3,9 @@
import sys
import unittest
-sys.path.insert(0, '..') # for c-to-c.py
-sys.path.insert(0, '../..') # for pycparser libs
-sys.path.insert(0, 'examples') # for running from root dir
+# Run from the root dir
+sys.path.insert(0, '.')
+sys.path.insert(0, 'examples')
from pycparser import c_parser
c2cmodule = __import__('c-to-c')