Reputation: 2623
Is there a way to execute a python script or static code-block before the actual main function is invoked in PyCharm? I have a small piece of initialization code (specific to my personal dev environment) that needs to be executed before the main function and I cannot change the module that has main()
since it is not a piece of code that I own.
Upvotes: 0
Views: 329