Files
Rasmus Wriedt Larsen 3e7e9636ea Python: Add ModuleValue.{isUsedAsModule, isUsedAsScript}
and a few test cases
2020-02-19 14:12:22 +01:00

7 lines
131 B
Python

def func():
pass
if __name__ == "__main__":
print("I could have done something interesting...")
print("but I didn't")