mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 17:19:20 +00:00
bb.pysh: fix writing pyshtables all over the place
(Bitbake rev: ff4753e362714a3c4c759c2fad8a9e5b8fe5bef5) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
4addbd191d
commit
32b4bd9224
@@ -648,7 +648,10 @@ def p_error(p):
|
||||
try:
|
||||
import pyshtables
|
||||
except ImportError:
|
||||
yacc.yacc(tabmodule = 'pyshtables')
|
||||
outputdir = os.path.dirname(__file__)
|
||||
if not os.access(outputdir, os.W_OK):
|
||||
outputdir = ''
|
||||
yacc.yacc(tabmodule = 'pyshtables', outputdir = outputdir, debug = 0)
|
||||
else:
|
||||
yacc.yacc(tabmodule = 'pysh.pyshtables', write_tables = 0, debug = 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user