reasra reasra - 1 year ago 144
Python Question

Solution wide constants

I have a VS2015 solution with a large

project and a
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download