Answers for "how give relative path in python for both windows linux and mac"

1

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

import os
f = open (os.path.expanduser("~/Desktop/somedir/somefile.txt"))
Posted by: Guest on August-16-2020

Code answers related to "how give relative path in python for both windows linux and mac"

Python Answers by Framework

Browse Popular Code Answers by Language