Skip to content

Instantly share code, notes, and snippets.

View totosan's full-sized avatar

Thomas Tomow totosan

View GitHub Profile
import os
import inspect
import importlib.util as imp
import logging
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'deploy'))
script_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'deploy/score.py')
driver_module_spec = imp.spec_from_file_location('service_driver', script_location)
import os
import inspect
import importlib.util as imp
import logging
import sys
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'deploy'))
script_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'deploy/score.py')
driver_module_spec = imp.spec_from_file_location('service_driver', script_location)