mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
pylightning/plugin: add lightning_version
member to plugin
This commit is contained in:
parent
da74f0118d
commit
2f5f364e17
@ -111,6 +111,9 @@ class Plugin(object):
|
||||
if not stdin:
|
||||
self.stdin = sys.stdin
|
||||
|
||||
self.lightning_version = None
|
||||
if os.getenv('LIGHTNINGD_VERSION'):
|
||||
self.lightning_version = os.getenv('LIGHTNINGD_VERSION')
|
||||
if os.getenv('LIGHTNINGD_PLUGIN') and autopatch:
|
||||
monkey_patch(self, stdout=True, stderr=True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user