File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,10 @@ def startInteractive(vars):
136
136
vars = vars .copy ()
137
137
138
138
# start the interpreter
139
- code .interact (local = vars )
139
+ code .interact (
140
+ local = vars ,
141
+ banner = "Starting interactive Python session. Exit with Ctrl-D to resume the job." ,
142
+ )
140
143
return
141
144
142
145
@@ -193,6 +196,7 @@ def main():
193
196
194
197
parser .add_argument (
195
198
"-i" ,
199
+ "--interactive" ,
196
200
action = "store_true" ,
197
201
help = "Start a Python command loop after reading the configuration files" ,
198
202
default = False ,
@@ -220,8 +224,7 @@ def main():
220
224
print (f"{ item } (from { cfgdb [item ]['lib' ]} ), path: { path_to_component } " )
221
225
sys .exit ()
222
226
223
- config_ns = {}
224
- config_ns ["os" ] = os
227
+ config_ns = {"os" : os }
225
228
for file in opts [0 ].config_files :
226
229
load_file (file , config_ns )
227
230
@@ -280,7 +283,7 @@ def main():
280
283
281
284
from Gaudi .Main import gaudimain
282
285
283
- if opts .i :
286
+ if opts .interactive :
284
287
startInteractive (config_ns )
285
288
286
289
gaudi = gaudimain ()
You can’t perform that action at this time.
0 commit comments