@@ -146,11 +146,12 @@ def get_artifacts_root() -> Path:
146
146
ini_settings = IniSettings .load (ini_file )
147
147
except FprimeLocationUnknownException :
148
148
print (
149
- "[ERROR] Not in fprime project and no deployment path provided, unable to find dictionary and/or app"
149
+ "[ERROR] Not in fprime project and no deployment path provided, unable to find dictionary and/or app" ,
150
+ file = sys .stderr
150
151
)
151
152
sys .exit (- 1 )
152
153
except FprimeSettingsException as e :
153
- print ("[ERROR]" , e )
154
+ print ("[ERROR]" , e , file = sys . stderr )
154
155
sys .exit (- 1 )
155
156
assert (
156
157
"install_destination" in ini_settings
@@ -165,17 +166,18 @@ def find_app(root: Path) -> Path:
165
166
bin_dir = root / "bin"
166
167
167
168
if not bin_dir .exists ():
168
- print (f"[ERROR] binary location { bin_dir } does not exist" )
169
+ print (f"[ERROR] binary location { bin_dir } does not exist" , file = sys . stderr )
169
170
sys .exit (- 1 )
170
171
171
172
files = [child for child in bin_dir .iterdir () if child .is_file ()]
172
173
if not files :
173
- print (f"[ERROR] App not found in { bin_dir } " )
174
+ print (f"[ERROR] App not found in { bin_dir } " , file = sys . stderr )
174
175
sys .exit (- 1 )
175
176
176
177
if len (files ) > 1 :
177
178
print (
178
- f"[ERROR] Multiple app candidates in binary location { bin_dir } . Specify app manually with --app."
179
+ f"[ERROR] Multiple app candidates in binary location { bin_dir } . Specify app manually with --app." ,
180
+ file = sys .stderr
179
181
)
180
182
sys .exit (- 1 )
181
183
@@ -186,7 +188,7 @@ def find_dict(root: Path) -> Path:
186
188
dict_dir = root / "dict"
187
189
188
190
if not dict_dir .exists ():
189
- print (f"[ERROR] dictionary location { dict_dir } does not exist" )
191
+ print (f"[ERROR] dictionary location { dict_dir } does not exist" , file = sys . stderr )
190
192
sys .exit (- 1 )
191
193
192
194
files = [
@@ -196,12 +198,13 @@ def find_dict(root: Path) -> Path:
196
198
]
197
199
198
200
if not files :
199
- print (f"[ERROR] No xml dictionary found in dictionary location { dict_dir } " )
201
+ print (f"[ERROR] No xml dictionary found in dictionary location { dict_dir } " , file = sys . stderr )
200
202
sys .exit (- 1 )
201
203
202
204
if len (files ) > 1 :
203
205
print (
204
- f"[ERROR] Multiple xml dictionaries found in dictionary location { dict_dir } . Specify dictionary manually with --dictionary."
206
+ f"[ERROR] Multiple xml dictionaries found in dictionary location { dict_dir } . Specify dictionary manually with --dictionary." ,
207
+ file = sys .stderr
205
208
)
206
209
sys .exit (- 1 )
207
210
0 commit comments