5 lines
103 B
Python
5 lines
103 B
Python
import os
|
|
|
|
print(os.environ['HOME'])
|
|
print(os.path.expandvars('~'))
|
|
print(os.path.expandvars('$HOME'))
|