I have a python script that is grabbing a function from a different script and using those functions on the inputs given in a different script.
However for some reason I am getting an error that say;
From Extraction import APIExtraction
ModuleNotFoundError: No module named ‘APIExtraction’
The functions are saved in a script saved in
'C:/Users/Administrator/Desktop/pythonScripts'
but I want the outputs of the code to be saved in
'C:/Users/Administrator/Desktop/pythonScripts/dailyDroppeedRoads/output'.
I have done it this way because I will want to use the APIExtraction again for a different input.
This is my current python script;
import os
import sys
os.chdir('C:/Users/Administrator/Desktop/pythonScripts')
from APIExtraction import APIExtraction
os.chdir('C:/Users/Administrator/Desktop/pythonScripts/dailyDroppeedRoads/output')
inputs = 'deg'
filename = 'abc'
runExtraction(inputs, filename)