Q:

Import not found when added as sub directory

I've cloned https://github.com/sarathknv/adversarial-pytorch. The file one_pixel.py finds all imports but If I add adversarial-pytorch as a sub directory to an existing project - myproject -> other -> adversarial-pytorch I receive error : 
from model import BasicCNN

causes error : 

Unresolved reference BasicCNN

I've tried modifying the import line to :
from myproject.other.model import BasicCNN

but this does not fix issue.
How to import python files that exist as a sub-project ?

A:

You might need to add "myproject/other" to the system path like following:
import sys
sys.path.append('yourpathstring')
from model import BasicCNN

