I'm trying to access functions from a helper script in the main script but import keeps throwing errors. Both scripts are in the same folder but I can't import one into another like I usually do. Could it be because I'm using a virtual environment this time? How to resolve it?
I've tried:
import crypto
crypto.encrypt()
but it throws an Attribute Error module 'crypto' has no attribute 'encrypt'
and when I do:
from crypto import encrypt
it throws ImportError: cannot import name 'encrypt' from 'crypto' (C:\Users\nano\virtual\crypto.py)
I've also tried modifying my launch.json file but it didn't help. What am I doing wrong?
EDIT: it seems to work normally the other way around.