how to open file explorer in python

Solutions on MaxInterview for how to open file explorer in python by the best coders in the world

showing results for - "how to open file explorer in python"
Aline
25 Feb 2017
1import os
2import subprocess
3FILEBROWSER_PATH = os.path.join(os.getenv('WINDIR'), 'explorer.exe')
4
5def explore(path):
6    # explorer would choke on forward slashes
7    path = os.path.normpath(path)
8
9    if os.path.isdir(path):
10        subprocess.run([FILEBROWSER_PATH, path])
11    elif os.path.isfile(path):
12        subprocess.run([FILEBROWSER_PATH, '/select,', os.path.normpath(path)])
Linus
26 Jan 2017
1import sys
2path = r'C:\Program Files (x86)\IronPython 2.7\Lib'
3sys.path.append(path)
4
5import subprocess
6subprocess.Popen('explorer "C:\temp"')
Sacha
15 Nov 2018
1import easygui
2file = easygui.fileopenbox()
queries leading to this page
python select file in explorerfile explorer open in pythonopen file manager pythonopen windows folder pythonpython how to open file windowpython open route in file explorerpython open file explorer or finderopening folder in file manager with pythonpython open directory in explorerpython display file exploreropen explorer on a file pythonhow to make file explorer open pythonpython open file explorer to select fileopen path in explorer using pythonpython open explorer windowfile explorer in pythonpython open explorer with pathopen explorer to choose file pythonopen folder explorer pythonopen file in explorer from pythonpython open file explorer to pathpython open file explorer at pathpython file exploreropen directory in explorer pythonhow to open file explorer using pythonpython open window in explorerhow to open windows file explorer from pythonpython file explorer open lcoationpython file ecxploeropen in file explorer pythonpython open explorerlaunch explorer directory pythonopen explorer using pythonopen file explorer from pythonopen file explorer window pythonpython get file explorer python open file explorer select filepython open file explorer and select filehow to load an image file in python with windows exploreropen file explorer in python scriptmatplotlib file browseropen a file in explorer in pythonopen file explorer in pygamehow to open windows explorer using pythonhow to use file explorer in pythonways to open file explorer so user can select file in pythonpython open explorer windows 8how to open files pythonmake python file explorerhow to open file explorer in pythonopen filexplorer with pythonopen a file explorer in pythonhow to make a command in python that opens a file explorer windowpython open new terminalopen file manager in phone using pythonopen folder in file explorer from pythonpython open file explorer to select folderpython open file in explorerhow to open file in pythonopen path in explorer pythonhow to create file explorer from pythonhow to make a file explorer pythonpython open explorer folderhow to make a command in python that opens our file explorerpython open file in file explorerhow to create a file explorer in pythongwt files from windows explorer in pythonsubprocess call 28 open file location 29 on windowspython open explorer for fileopen a folder in file explorer pythonopen file in explorer pythonhow to open explorer in pythonpython open file explorerhow to open file explorer in python to open a fileopen file explorer python script web how to use file exploer to choose a directory in pythonopen file explorer directory pythondisplay opened files from file explorer pythonhow to open windows explorer in pythonpython how to open file explorerpython open file from exploreropen explorer pythonhow to open file in windows explorerusing pythonhow to open a path in file explorer in pythonpython open directory in file exploreropen window explorer pythonopening file explorer pythonpython how to open a file explorer to choose a pathopeining file explorer using pythtkinter file veiwerpython windows file explorerpython open file explorer to a directorycan python open windows file browseropen file from file explorer pythonpygame open windows explorerpython open folder in explorerwindows open file explorer pythonpython get explorer filehow to open file explorer popup window pythonopen containing folder and select file pythonopen file explorer with pythonhow to open pythin file from file explorerehow to make a file explorer in pythonpython select file from a folderhow to open file explorer with pythonopening file explorer with pythonpython os open file explorerpython show file in explorerhow to open file explorer from cmd pythonpython subprocess open folderfile explorer pythonhow to open file manager in pythonopen explorer with pythonopen explorer in pythonfile explorer using pythonpython file browserpython launch file exploreropen file explorer pythonfile options for file explorer pythonopen choose files from file explorer pythonopen file explorer for saving pythonpython open folder in windows exploreropen file explorer python scripthow to open file explorer in python