Python isn’t preprocessed. You can just create a file myconstants.py:
MY_CONSTANT = 50
And importing them will just work:
import myconstants
print myconstants.MY_CONSTANT * 2
Python isn’t preprocessed. You can just create a file myconstants.py:
MY_CONSTANT = 50
And importing them will just work:
import myconstants
print myconstants.MY_CONSTANT * 2