Currently thepython.terminal.executeInFileDir settings doesn't affect Run Selection/Line in Python Terminal ( executeSelectionInTerminal ).
Hope we can also call setCwdForFileExecution in initializeRepl to set cwd when python.terminal.executeInFileDir is enabled.