summaryrefslogtreecommitdiff
path: root/examples/rewrite_ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rewrite_ast.py')
-rw-r--r--examples/rewrite_ast.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/rewrite_ast.py b/examples/rewrite_ast.py
index 164abb5..ea9adb3 100644
--- a/examples/rewrite_ast.py
+++ b/examples/rewrite_ast.py
@@ -7,7 +7,9 @@
# License: BSD
#-----------------------------------------------------------------
from __future__ import print_function
+import sys
+sys.path.extend(['.', '..'])
from pycparser import c_parser
text = r"""