Python will import it twice.
A link is a file system concept. For the Python interpreter, x.py and y.py are two different modules.
$ echo print \ "importing \" + __file__> x.py
$ ln -s x.py y.py
$ python -c "import x; import y"
importing x.py
importing y.py
$ python -c "import x; import y"
importing x.pyc
importing y.pyc
$ ls -F * .py * .pyc
x.py x.pyc y.py @ y.pyc
codeape
source share