python open_folder code example Example: python open folder import subprocess subprocess.Popen(r'explorer /select,"C:\path\of\folder\file"')