summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/pysh/pyshyacc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/pysh/pyshyacc.py b/bitbake/lib/bb/pysh/pyshyacc.py
index 3d9510c0c3..6b2bf466d2 100644
--- a/bitbake/lib/bb/pysh/pyshyacc.py
+++ b/bitbake/lib/bb/pysh/pyshyacc.py
@@ -648,7 +648,10 @@ def p_error(p):
648try: 648try:
649 import pyshtables 649 import pyshtables
650except ImportError: 650except ImportError:
651 yacc.yacc(tabmodule = 'pyshtables') 651 outputdir = os.path.dirname(__file__)
652 if not os.access(outputdir, os.W_OK):
653 outputdir = ''
654 yacc.yacc(tabmodule = 'pyshtables', outputdir = outputdir, debug = 0)
652else: 655else:
653 yacc.yacc(tabmodule = 'pysh.pyshtables', write_tables = 0, debug = 0) 656 yacc.yacc(tabmodule = 'pysh.pyshtables', write_tables = 0, debug = 0)
654 657