These are chat archives for Exa-Networks/exabgp

29th
Jul 2015
Peng Xiao
@xiaopeng163
Jul 29 2015 02:16
@thomas-mangin is there any good ways to share the same variables between two modules beside global variables? http://stackoverflow.com/questions/13034496/using-global-variables-between-files-in-python
Thomas Mangin
@thomas-mangin
Jul 29 2015 07:14
My trick is to use environment variable os getenv setenv environ
Thomas Mangin
@thomas-mangin
Jul 29 2015 07:28
It is not most elegant but it works.
Thomas Mangin
@thomas-mangin
Jul 29 2015 08:12
Example in exabgp code: if os.environ.get('PDB',None) not in [None,'0','']