Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to open a file in a different directory in mac

import os
f = open (os.path.expanduser("~/Desktop/somedir/somefile.txt"))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #open #file #directory #mac
ADD COMMENT
Topic
Name
9+2 =