diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-11-11 08:57:04 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:39 +0000 |
commit | 32b4bd92242b5ec3b5c405340dfd24044bad7796 (patch) | |
tree | 98bd9c06c2c6e0abcd12e97cb0bd8fe7f6ebf262 /bitbake/lib | |
parent | 4addbd191dec44d01e8d9961e645948c0ebd04c8 (diff) | |
download | poky-32b4bd92242b5ec3b5c405340dfd24044bad7796.tar.gz |
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>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/pysh/pyshyacc.py | 5 |
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): | |||
648 | try: | 648 | try: |
649 | import pyshtables | 649 | import pyshtables |
650 | except ImportError: | 650 | except 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) | ||
652 | else: | 655 | else: |
653 | yacc.yacc(tabmodule = 'pysh.pyshtables', write_tables = 0, debug = 0) | 656 | yacc.yacc(tabmodule = 'pysh.pyshtables', write_tables = 0, debug = 0) |
654 | 657 | ||