0

How would I do the following:

f=open('~/.bash_profile')

Is there a way to resolve the ~ path without using something like subprocess?

William Pursell
  • 190,037
  • 45
  • 260
  • 285
David542
  • 101,766
  • 154
  • 423
  • 727

0 Answers0