Python cara membuka file di direktori yang berbeda di Mac
import os
f = open (os.path.expanduser("~/Desktop/somedir/somefile.txt"))
Vast Vulture
import os
f = open (os.path.expanduser("~/Desktop/somedir/somefile.txt"))