Source code for pex.link

# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

from __future__ import absolute_import

import os
import posixpath
from collections.abc import Iterable

from .compatibility import PY3, WINDOWS, pathname2url
from .compatibility import string as compatible_string
from .compatibility import url2pathname
from .util import Memoizer

if PY3:
  import urllib.parse as urlparse
else:
  import urlparse