Is there a way to prevent the script's directory from being added to sys.path in python3? I'm getting import conflicts due to the fact that imports are relative in python. A legacy project I'm working with has a file called logger.py in the root directory of the script which conflicts with the built-in logger.
The custom build system that I use ends up creating symlinks to all the files and dependencies and in production, at runtime we use the -E flag to ignore any system set PYTHONPATH and set the path to what we want. But running tests/scripts from PyCharm doesn't work because of this conflict.