reasra reasra - 1 month ago 10
Python Question

Solution wide constants

I have a VS2015 solution with a large

c#
project and a
python
helper project. Is there a simple way to have solution-wide constants that I could access from both projects? If not, it would just hamper my maintainability, but I thought I'd ask.

Answer

Create a separate file for maintaining your constants with some structure which could be accessed by both C# and Python. For example: JSON, YAML, etc. Read this file to load configuration from both projects