Answers for "open a directory folder in python"

0

how to access a txt file through os library in python

my_file_handle=open("folder/test.txt")
my_file_handle.read()
Posted by: Guest on September-22-2020
0

how to open folder in python

import webbrowser

path = "C:/Users/Username/PycharmProjects"
webbrowser.open(path) # Opens 'PycharmProjects' folder.
Posted by: Guest on January-05-2021

Code answers related to "open a directory folder in python"

Python Answers by Framework

Browse Popular Code Answers by Language