File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { DebugClient } from "./DebugClients/DebugClient";
22
22
import { CreateAttachDebugClient , CreateLaunchDebugClient } from "./DebugClients/DebugFactory" ;
23
23
import { BaseDebugServer } from "./DebugServers/BaseDebugServer" ;
24
24
import { PythonProcess } from "./PythonProcess" ;
25
+ import { IS_WINDOWS } from './Common/Utils' ;
25
26
26
27
const CHILD_ENUMEARATION_TIMEOUT = 5000 ;
27
28
@@ -214,11 +215,12 @@ export class PythonDebugger extends DebugSession {
214
215
catch ( ex ) {
215
216
}
216
217
if ( Array . isArray ( args . debugOptions ) && args . debugOptions . indexOf ( "Pyramid" ) >= 0 ) {
218
+ const pserve = IS_WINDOWS ? "pserve.exe" : "pserve" ;
217
219
if ( fs . existsSync ( args . pythonPath ) ) {
218
- args . program = path . join ( path . dirname ( args . pythonPath ) , " pserve" ) ;
220
+ args . program = path . join ( path . dirname ( args . pythonPath ) , pserve ) ;
219
221
}
220
222
else {
221
- args . program = " pserve" ;
223
+ args . program = pserve ;
222
224
}
223
225
}
224
226
// Confirm the file exists
You can’t perform that action at this time.
0 commit comments