vscode-unreal-python icon indicating copy to clipboard operation
vscode-unreal-python copied to clipboard

ModuleNotFoundError when importing python files (utility.py) located in the same directory as main.py script

Open dirkteucher opened this issue 2 months ago • 5 comments

I cannot import classes or def functions like this from myOtherFile import utilityABC

I was wondering what the best solution is to import my own custom python files from the same directory or even sub directory with this extension?

I can do this just fine outside of vscode and the stub system everything works great but the interpreter in vscode along with the Unreal remote execution does not seem to handle importing local files in the same way.

Hopefully you have a solution as this will make my code a lot more readable.

dirkteucher avatar Apr 30 '24 10:04 dirkteucher