Merge branch 'bugfix/use_local_kconfiglib_v3.3' into 'release/v3.3'
Use kconfiglib from $IDF_PATH/tools/kconfig_new (v3.3) See merge request espressif/esp-idf!6080
This commit is contained in:
commit
cc68a512d2
4 changed files with 23 additions and 6 deletions
|
@ -30,7 +30,12 @@ import json
|
|||
import re
|
||||
|
||||
import gen_kconfig_doc
|
||||
import kconfiglib
|
||||
|
||||
try:
|
||||
from . import kconfiglib
|
||||
except Exception:
|
||||
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
|
||||
import kconfiglib
|
||||
|
||||
__version__ = "0.1"
|
||||
|
||||
|
|
|
@ -6,12 +6,17 @@
|
|||
from __future__ import print_function
|
||||
import argparse
|
||||
import json
|
||||
import kconfiglib
|
||||
import os
|
||||
import sys
|
||||
import confgen
|
||||
from confgen import FatalError, __version__
|
||||
|
||||
try:
|
||||
from . import kconfiglib
|
||||
except Exception:
|
||||
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
|
||||
import kconfiglib
|
||||
|
||||
# Min/Max supported protocol versions
|
||||
MIN_PROTOCOL_VERSION = 1
|
||||
MAX_PROTOCOL_VERSION = 2
|
||||
|
|
|
@ -21,8 +21,15 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
from __future__ import print_function
|
||||
import os
|
||||
import re
|
||||
import kconfiglib
|
||||
import sys
|
||||
|
||||
try:
|
||||
from . import kconfiglib
|
||||
except Exception:
|
||||
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
|
||||
import kconfiglib
|
||||
|
||||
# Indentation to be used in the generated file
|
||||
INDENT = ' '
|
||||
|
|
|
@ -19,11 +19,11 @@ from pyparsing import Word, printables, Combine, Literal, hexnums, quotedString,
|
|||
|
||||
import sys
|
||||
try:
|
||||
import kconfiglib
|
||||
except ImportError:
|
||||
from . import kconfiglib
|
||||
except Exception:
|
||||
parent_dir_name = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
kconfig_new_dir = os.path.abspath(parent_dir_name + "/kconfig_new")
|
||||
sys.path.append(kconfig_new_dir)
|
||||
sys.path.insert(0, kconfig_new_dir)
|
||||
import kconfiglib
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue