1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | Some python.
#!/usr/bin/env python3
import os
print(os.environ['HOME'])
print(os.path.expanduser('~'))
When executed results in:
/home/martin
/home/martin
When execute in a snap it results in:
/home/martin/snap/home-tester/100001
/home/martin/snap/home-tester/100001
|