Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python how to open a file in a different directory in mac
Artur Beljajev
Programming language:
Python
2021-06-04 23:59:06
0
Q:
python how to open a file in a different directory in mac
Naga Raja
Code:
Python
2021-06-22 20:54:30
import os f = open (os.path.expanduser("~/Desktop/somedir/somefile.txt"))
0
Tags
python
file
mac
how
different
Related
python import file from different directory
get files in directory python
get path of open file python
how to open file explorer in python
python find specific file in directory
open file in python directory
get directory of file python
python open file same folder
python open each file in directory
New to Communities?
Join the community