summaryrefslogtreecommitdiff
path: root/examples/cdecl.py
diff options
context:
space:
mode:
authorBen <Ben@ben-home>2012-02-03 06:24:55 +0200
committerBen <Ben@ben-home>2012-02-03 06:24:55 +0200
commitf86dea169a1568afd44ed3436e93b1718bac7ad1 (patch)
treed88fb11cb528502f50d2ce8db64d5af31b3e916c /examples/cdecl.py
parent5cd3fd6478d99b75cdfce8c205c3f06997d9cf1b (diff)
downloadpycparser-f86dea169a1568afd44ed3436e93b1718bac7ad1.tar.gz
1. make examples callable from root dir
2. improve error message displayed to the user when cpp is not found by parse_file
Diffstat (limited to 'examples/cdecl.py')
-rw-r--r--examples/cdecl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cdecl.py b/examples/cdecl.py
index 0e07272..8884591 100644
--- a/examples/cdecl.py
+++ b/examples/cdecl.py
@@ -25,7 +25,7 @@ import sys
# This is not required if you've installed pycparser into
# your site-packages/ with setup.py
#
-sys.path.insert(0, '..')
+sys.path.extend(['.', '..'])
from pycparser import c_parser, c_ast