poetry script fails to find module
Loris Bennett
loris.bennett at fu-berlin.de
Fri Jul 29 02:22:13 EDT 2022
ram at zedat.fu-berlin.de (Stefan Ram) writes:
> "Loris Bennett" <loris.bennett at fu-berlin.de> writes:
>>However, this raises the question of why it worked in the first place
>>in the poetry shell.
>
> It might have had a different or extended sys.path.
In the poetry shell sys.path has this additional path
/home/loris/gitlab/stoat
The module not being found was
/home/gitlab/stoat/stoat/hpc/main.py
But if I run
[~/gitlab/stoat] $ python stoat/main.py hpc user --help
wouldn't
import hpc.main
still fail? Or is it because I am calling
stoat/main.py
and so Python looks for 'hpc' relative to the second 'stoat' directory?
Confused,
loris
--
This signature is currently under construction.
More information about the Python-list
mailing list