From 7a3a3e822473a61dca926b75291707f440cfcf01 Mon Sep 17 00:00:00 2001 From: liubb_0516 Date: Mon, 23 Aug 2021 15:43:54 +0800 Subject: [PATCH] add config file for dsoftbus Signed-off-by: liubb_0516 --- config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config.py b/config.py index f329ceba06..ab24060a98 100644 --- a/config.py +++ b/config.py @@ -18,7 +18,7 @@ import os import sys -from subprocess import run +import subprocess from PyInquirer import prompt @@ -35,7 +35,7 @@ def enable_option(file_name): return if os.path.exists('.config'): - run(['rm', '.config']) + os.remove('.config') file_data = '' with open(file_name, 'r') as gni_file: @@ -67,7 +67,7 @@ def ask_option(): def main(): print('##### Welcome to Dsoftbus #####') option = ask_option() - run(['menuconfig']) + subprocess.call(['menuconfig']) file_gni = './adapter/default_config/feature_config/platform/config.gni' if (option == 'standard'): file_gni = file_gni.replace('platform', 'standard')