Running dfm via a simlink on $PATH results in the error:
Traceback (most recent call last):
File "C:/Users/rick/bin/dfm", line 12, in <module>
from env import env
ModuleNotFoundError: No module named 'env'
To reproduce under git-bash on Windows:
add print(sys.path) to top of dfm.py
$ ln -s ~/repos/dotfiles-manager/dotfiles/dfm.py ~/bin/dfm && dfm
Observe the output is prepended with 'C:\\Users\\rick\\bin'
On macOS, the output is prepended with the dereferenced path '/Users/rick/repos/dotfiles-manager/dotfilesmanager' and the ModuleNotFoundError does not occur.
Running dfm via a simlink on
$PATH
results in the error:To reproduce under git-bash on Windows:
print(sys.path)
to top of dfm.py$ ln -s ~/repos/dotfiles-manager/dotfiles/dfm.py ~/bin/dfm && dfm
Observe the output is prepended with'C:\\Users\\rick\\bin'
On macOS, the output is prepended with the dereferenced path
'/Users/rick/repos/dotfiles-manager/dotfilesmanager'
and theModuleNotFoundError
does not occur.