I have a project with 10 different python files. It has classes and functions - to a large extent. I want to share specific data that will represent the settings in the project between all project files.
I came up with the file creation settings.py:
settings = {}
settings['max_bitrate'] = 160000
settings['dl_dir'] = r"C:\Downloads"
and then I import the class from each file.
Is there a more suitable way to do this?
source
share