Browse Source

notify-integrate

David Rose 13 years ago
parent
commit
16c0690edb
1 changed files with 4 additions and 0 deletions
  1. 4 0
      direct/src/directnotify/Notifier.py

+ 4 - 0
direct/src/directnotify/Notifier.py

@@ -17,6 +17,10 @@ class Notifier:
     # particularly useful for integrating the Python notify system
     # with the C++ notify system.
     streamWriter = None
+    if ConfigVariableBool('notify-integrate', True):
+        from libpandaexpress import StreamWriter, Notify
+        streamWriter = StreamWriter(Notify.out(), False)
+        
     showTime = ConfigVariableBool('notify-timestamp', False)
 
     def __init__(self, name, logger=None):