Welcome to mirror list, hosted at ThFree Co, Russian Federation.

readlink.py « tools - github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 02c74c48d63ff6f366ff8d2443cf86db9b31c4dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python
"""Canonicalizes a path and follows any symlinks.

This is the equivalent of `readlink -f` on many Linux systems. This is
useful as there are often differences in readlink on different
platforms.

"""
from __future__ import print_function
import os
import sys

print(os.path.realpath(sys.argv[1]))