Using Symbolic Module on Windows with Python

I currently have a symlinked python module directory that I want in the same directory as my file, however, when my python script tries to import pyamf , python raises ImportError: No module named pyamf .

When copying a directory, it works fine, so it has something to do with a symbolic link (which was created using the " mklink Windows" mklink , not msys ln )

Python - Version 2.7.2 x64

+4
source share
1 answer

Python 2.7 has problems with Windows symbolic characters. Instead of creating a symlink, create a directory connection using the \J option. For instance:

 mklink \J link_dir target_dir 
+3
source

All Articles