blob: a2fc902377e9ec27c71d60f3e77d6ec851bdef1d (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/usr/bin/env python
import sys
import os.path
if len(sys.argv) < 2:
sys.stderr.write("Usage: realpath path\n")
exit(2)
sys.stdout.write(os.path.realpath(sys.argv[1]) + "\n")
|