[chimerax-users] Trouble with imports in ChimeraX bundle
William Hofsøy
2wswer at gmail.com
Tue Apr 5 07:33:28 PDT 2022
Hi, I have been doing some restructuring and refactoring of my project and
started having trouble with my imports and modules not being found.
previously all my imports were relative for instance: "from . import tool"
However this is a bit impractical now that I have a folder structure, so I
have been trying to use absolute imports like from "src.toolname.pythonfile
import class" but it seems my folder structure differs from how it is after
installing it into ChimeraX. I am using pycharm as my editor and the
automatic import paths they set up also fails, meanwhile i looked at the
sys.path and there the structure is chimerax/packagename where packagename
contains the files contained in my src.
So I was wondering if there is a way to set this up properly?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20220405/98d54fd8/attachment.html>
More information about the ChimeraX-users
mailing list