I'm contributing to a Python 3 project from a Windows 7 computer.
In order to minimise clutter while making and testing changes, I'm placing a few test files inside a folder called ignore
within the project, and excluding it from the version control system (Git).
There is no __init__.py
file in the root of the project, so I thought I'd create a symbolic link from the module I want to test into the ignore
folder, to enable me to import it.
mklink ignore\example.py example.py
When I try to import the module from a script in ignore
I get an ImportError
saying the example
module doesn't exist.
Is it possible to import modules via symbolic links in this way? I understand that this is supposed to work, but I can't find a reference saying that it works on Windows.