Importing custom python module into scripted extension

Hey all,
I have a custom python file that contains some code independent of 3d slicer. I am trying to import that module to use in a scripted widged by doing
import asyncsocket
howeveri get this
RuntimeError: qSlicerScriptedLoadableModule::setPythonSourc
apperently it is not a scripted loadable module. this is a generic python code that utilizes only core python function is in the same directory as the slicer scripted widget


This topic should help: