I'm trying to profile a module that I would usually run like
python -m project.myscript <my args>
However I cannot profile it using Pycharm Profiler. I tried to change the configuration file for the test but still no success I keep getting:
SystemError: Parent module '' not loaded, cannot perform relative import
Is there a workaround for this ?