Only run main() if program is run directly
Checking that __name__ is "__main__" prevents main() from being run if this script is imported as a module.
This commit is contained in:
parent
4808f23a98
commit
aee575848b
|
@ -2263,4 +2263,5 @@ def main():
|
|||
print(Solve(*arguments))
|
||||
|
||||
|
||||
main()
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue