I am using python and I created a simple way to write HTML and output the file. I developed this module on 2 computers in which on the main one I could use the following according to the directory tree:
Pypertext:
   html.py
   widget.py
   htmlHeader.py
   htmlTitle.py
   htmlButton.py
This is the folder of the module that can be imported using:
from pyperclip.htmlHeader import Header
although in htmlHeader.py I have the following import:
from widget import baseWidget
This runs fine on my computer but when I go to the secondary computer I get an error and I fixed by:
from .widget import baseWidget
On my main computer I get an error for the attempted relative import and I feel that in the module script it should not have to be a lot of try except statements to make it work.
I use python 3.10
