Hello,
I want to build a simple web browser following along this https://browser.engineering/http.html and have created a directory like this:
I want to build a simple web browser following along this https://browser.engineering/http.html and have created a directory like this:
webbrowser
---- __init__.py
---- src
---- __init__.py
---- URL
---- test
---- __init__.py
---- test_URLaccording to 6.4 https://docs.python.org/3/tutorial/modules.html this is the way to import submodules but when I doimport unittest
import webbrowser.src.URL
class test_URL(unittest.TestCase):
def test_init(self):
test_URL = URL("http://www.example.org/index.html")
test_URL.print_URL()
assertEquals(1,1)
if __name__ == '__main__':
unittest.main()I get " No module named 'webbrowser.src'; 'webbrowser' is not a package ". I am using apple silicon M2 with mac os Sonoma if that is important.
