@@ -32,7 +32,7 @@ function colorizeOutput (color, string) {
32
32
return color + string + RESET
33
33
}
34
34
35
- //! on windows debug running with locale cmd (e. g. chcp 866) encoding
35
+ //! on windows debug running with locale cmd encoding (e. g. chcp 866)
36
36
// to avoid that uncomment next lines
37
37
// locale encodings cause issues. See run func for more info
38
38
// this lines only for testing
@@ -284,7 +284,8 @@ class PythonFinder {
284
284
this . log . verbose (
285
285
`executing "${ colorizeOutput (
286
286
GREEN ,
287
- check . name || check . arg
287
+ // DONE: swap in favor of arg (user want to see what we actually will run not how it is named)
288
+ check . arg || check . name
288
289
) } " to get Python executable path`
289
290
)
290
291
@@ -441,6 +442,7 @@ class PythonFinder {
441
442
`${ colorizeOutput ( GREEN , 'execFile' ) } : args = %j` ,
442
443
args
443
444
)
445
+ // TODO: make beauty print of PATH property (new line by semicolon)
444
446
this . log . silly ( 'execFile: opts = ' , JSON . stringify ( opts , null , 2 ) )
445
447
446
448
//* possible outcomes with error messages on Windows (err.message, error.stack?, stderr)
@@ -476,6 +478,7 @@ class PythonFinder {
476
478
`${ colorizeOutput ( RED , 'execFile result' ) } : err =` ,
477
479
( err && err . stack ) || err
478
480
)
481
+ // TODO: add silly logs as in previous version
479
482
480
483
// executed script shouldn't pass anything to stderr if successful
481
484
if ( err || stderr ) {
@@ -617,8 +620,8 @@ function findPython (configPython, callback) {
617
620
/* findPython(null, (err, found) => {
618
621
console.log('found:', '\x1b[31m', found)
619
622
console.log('\x1b[0m')
620
- })
621
- */
623
+ })
624
+ */
622
625
module . exports = findPython
623
626
module . exports . test = {
624
627
PythonFinder : PythonFinder ,
0 commit comments