We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 778fc8c commit ae1f160Copy full SHA for ae1f160
one.py
@@ -0,0 +1,10 @@
1
+def func():
2
+ print("func() in one.py")
3
+
4
5
+print("TOP LEVEL ONE.PY")
6
7
+if __name__ == '__main__':
8
+ print("one.py is being run directly")
9
+else:
10
+ print("one.py has been imported")
two.py
@@ -0,0 +1,8 @@
+import one
+print("TOP LEVEL TWO.PY")
+one.func()
+ print("Two.py being run directly")
+ print("two is being imported")
0 commit comments