Feb-14-2019, 09:08 PM
So I'm working on a program that refers to a lot of data. I store each archive in a separate python file. Each file has a single function: giveArchive() that returns all of its data. So to access any archive, I use:
import fileName
return fileName.giveArchive()
I'm looking to streamline this process a little bit. I want to store all of these files in a folder, and automatically import all of them. I'm trying to just do:
import folderName
which python doesn't seem to have a problem with, but I can't seem to use any of the functions to return archives. How should I go about this?
Using python 3.4.6 btw
import fileName
return fileName.giveArchive()
I'm looking to streamline this process a little bit. I want to store all of these files in a folder, and automatically import all of them. I'm trying to just do:
import folderName
which python doesn't seem to have a problem with, but I can't seem to use any of the functions to return archives. How should I go about this?
Using python 3.4.6 btw