DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+2 =
Submit