Skip to content

Commit 683e548

Browse files
committed
Small improvements
1 parent 18ce802 commit 683e548

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tools/config_editor/app.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ class ConfigEditorApp(App):
3535
# Main application class
3636

3737
# Change to the root directory of the app to the root of the project
38-
script_path = os.path.abspath(os.path.dirname(__file__))
39-
root_path = os.path.abspath(os.path.join(script_path, "..", ".."))
40-
os.chdir(root_path)
38+
SCRIPT_PATH = os.path.abspath(os.path.dirname(__file__))
39+
ROOT_PATH = os.path.abspath(os.path.join(SCRIPT_PATH, "..", ".."))
40+
os.chdir(ROOT_PATH)
4141

42-
# Options
42+
# Set the application options
43+
option_enable_copy = True
44+
45+
# Options to be set by the command line arguments
4346
option_target = None
4447
option_arduino_path = None
4548
option_arduino_branch = None
@@ -130,18 +133,21 @@ def main() -> None:
130133
parser.add_argument("-A", "--arduino-branch",
131134
metavar="<arduino branch>",
132135
type=str,
136+
default="",
133137
required=False,
134138
help="Branch of the arduino-esp32 repository to be used")
135139

136140
parser.add_argument("-I", "--idf-branch",
137141
metavar="<IDF branch>",
138142
type=str,
143+
default="",
139144
required=False,
140145
help="Branch of the ESP-IDF repository to be used")
141146

142147
parser.add_argument("-i", "--idf-commit",
143148
metavar="<IDF commit>",
144149
type=str,
150+
default="",
145151
required=False,
146152
help="Commit of the ESP-IDF repository to be used")
147153

0 commit comments

Comments
 (0)