diff options
author | Ben <Ben@ben-home> | 2012-02-03 06:24:55 +0200 |
---|---|---|
committer | Ben <Ben@ben-home> | 2012-02-03 06:24:55 +0200 |
commit | f86dea169a1568afd44ed3436e93b1718bac7ad1 (patch) | |
tree | d88fb11cb528502f50d2ce8db64d5af31b3e916c /examples/cdecl.py | |
parent | 5cd3fd6478d99b75cdfce8c205c3f06997d9cf1b (diff) | |
download | pycparser-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.py | 2 |
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 |