
17 Apr
2024
17 Apr
'24
9:03 p.m.
Hi there, I'm running a python script either from within ChimeraX (with "open http://myScript.py") or from the command line (using "chimerax http://myScript.py"). As the script gets longer and longer, I would like to store some class definitions in a separate file (http://classDefinitions.py within the same directory as http://myScript.py and then import those into the main script with some command like "from classDefinitions import testClass". This, however, gives me an "ModuleNotFoundError: No module named 'testClass'". What is the correct way to do this? Any help would be much appreciated! Cheers, Maik