Created
November 12, 2020 15:42
-
-
Save jenia/1fa532083e554284650cf5a62d0a2e96 to your computer and use it in GitHub Desktop.
File structure python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/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