How to execute code string in Python?
===

I know there is a question similar to it here but I am having a different problem.

I have some code files in a plugin but the plugin uses internal paths only the software knows, so I am not able to access that path to use it with `execfile`.

But there is an internal python function called `readInternalFile (path)`, where I can use this internal path and it returns the contents of this file as a string.

So I thought then I could use the standard python function `exec`, but as soon as I do that, it complains about the very first line being '\r\n'.

How can I fix this? I print the type of the data `readInternalFile` returns, and it's `str`, so everything should be fine, right?

The code in the file works by itself and has no syntax errors, etc.