Split large python script into smaller files

Hi!

Our team is developing a 3D Slicer module.

However, we are unable to fragment the code that is used so our script has now more than 3 000 lines in one python script (and we would like to have for example 10 python scripts of 300 lines that make working the module we are developing for example). How can we fragment a python script into multiple files of a 3D Slicer module code?

Thank you in advance for considering this aspect,

You can split the code into different files and put them in a lib directory. See for example how this is one in the DICOM module and the DICOMLib directory.

Ok thanks for your quick answer! It is greatly appreciated!
Cheers,