fo_x86
fo_x86

Reputation: 2623

Run an init script/code-block before running main in PyCharm

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

Answers (1)

Iluvatar
Iluvatar

Reputation: 672

Add your module in Before launch, by editing run config img

Upvotes: 2

Related Questions