microsoft / microsoft/vscode

Python os.startfile() Starts Program Up but doesn't open file included in pathname

Open
#330,865 0 comments 0 reactions 1 assignee Claimed by @karthiknadig View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Bug

Generates pathname with directory and extension for excel file with "pathname"
Calls os.startfile(pathname) and file starts up.
Request file does not appear

VS Code version: Code 1.133.0 (a5b500951314efd502d07465bd138dfbd714a960, 2026-08-11T22:14:08Z)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) Ultra 5 125U (14 x 2688)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x7d45 [Intel(R) Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.8724 *ACTIVE*
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8972
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.46GB (11.31GB free)|
|Process Argv|--crash-reporter-id b9da3a4e-2f39-4a4f-adb5-7d3cbb657653|
|Screen Reader|no|
|VM|0%|
Extensions (33)

Name|Identifier|Author|Version
---|---|---|---
Django|batisteo.vscode-django|batisteo|1.15.0
Python Environment Manager (deprecated)|donjayamanne.python-environment-manager|donjayamanne|1.2.7
Python Extension Pack|donjayamanne.python-extension-pack|donjayamanne|1.7.0
ArcGIS Maps SDK for JavaScript Snippets|esri.arcgis-maps-sdk-js-snippets|Esri|1.1.0
Debugger for Firefox|firefox-devtools.vscode-firefox-debug|firefox-devtools|2.15.0
GitHub Pull Requests|github.vscode-pull-request-github|GitHub|0.162.0
Python Indent|kevinrose.vsc-python-indent|KevinRose|1.21.0
Auto Build Marlin|marlinfirmware.auto-build|marlinfirmware|2.1.88
Container Tools|ms-azuretools.vscode-containers|ms-azuretools|2.4.5
Docker|ms-azuretools.vscode-docker|ms-azuretools|2.0.0
Python Debugger|ms-python.debugpy|ms-python|2026.7.12111009
isort|ms-python.isort|ms-python|2026.6.0
Python|ms-python.python|ms-python|2026.4.0
Pylance|ms-python.vscode-pylance|ms-python|2026.3.1
Jupyter|ms-toolsai.jupyter|ms-toolsai|2025.9.1
Jupyter Keymap|ms-toolsai.jupyter-keymap|ms-toolsai|1.1.2
Jupyter Notebook Renderers|ms-toolsai.jupyter-renderers|ms-toolsai|1.3.0
Jupyter Cell Tags|ms-toolsai.vscode-jupyter-cell-tags|ms-toolsai|0.1.9
Jupyter Slide Show|ms-toolsai.vscode-jupyter-slideshow|ms-toolsai|0.1.6
Dev Containers|ms-vscode-remote.remote-containers|ms-vscode-remote|0.466.0
CMake Tools|ms-vscode.cmake-tools|ms-vscode|1.23.52
C/C++ DevTools|ms-vscode.cpp-devtools|ms-vscode|0.5.14
C/C++|ms-vscode.cpptools|ms-vscode|1.32.2
C/C++ Extension Pack|ms-vscode.cpptools-extension-pack|ms-vscode|1.5.1
Notepad++ keymap|ms-vscode.notepadplusplus-keybindings|ms-vscode|1.0.7
autoDocstring - Python Docstring Generator|njpwerner.autodocstring|njpwerner|0.6.1
PlatformIO IDE|platformio.platformio-ide|platformio|3.3.4
R|reditorsupport.r|REditorSupport|2.8.8
R Syntax|reditorsupport.r-syntax|REditorSupport|0.1.4
CMake|twxs.cmake|twxs|0.0.17
IntelliCode API Usage Examples|visualstudioexptteam.intellicode-api-usage-examples|VisualStudioExptTeam|0.2.9
IntelliCode|visualstudioexptteam.vscodeintellicode|VisualStudioExptTeam|1.3.2
Jinja|wholroyd.jinja|wholroyd|0.0.8

A/B Experiments

```
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
envsactivate1:31551504
gh487529:31544284
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
ei9d7968:31496641
chat:31457767
ghj88844:31499326
ec1eg703:31520046
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
748c7209:31512887
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
a1ije391_t:31540920
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
gf14b233:31526830
ahp-both-windows:31556933
sessions_5:31532894
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
enable_editor_pane_layout:31566738
allow-none:31555437
fd5dc207:31551400
ac562147:31564510
c7c27ce7:31554789
1h923230:31564177
1532g621_copy:31554320
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
switchtoauto:31559321
0c1h4866:31566224
vrbsty_fls:31561059
session-archive:31558132
5b8j3302:31564601

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.