Skip to content

Instantly share code, notes, and snippets.

@jenia
Created November 12, 2020 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenia/1fa532083e554284650cf5a62d0a2e96 to your computer and use it in GitHub Desktop.
Save jenia/1fa532083e554284650cf5a62d0a2e96 to your computer and use it in GitHub Desktop.
File structure python
~/example/program.py
~/example/tests/uni-tests.py
~/example/program.py
=====================
#!/usr/bin/python3
class A():
def f(self):
print("hello")
a = A()
a.f()
~/example/tests/uni-tests.py
============================
from example import A
a = A()
a.f()
ERROR:
from example import A
moduleNotFoundError: No module named "example"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment