1. Matthew Turk
  2. yt.rife

Commits

Matthew Turk  committed 43020b0

Put the HMAC key inside the root setup.

  • Participants
  • Parent commits bb91062
  • Branches default

Comments (0)

Files changed (1)

File main_engine.py

View file
  • Ignore whitespace
 import time
 import Pyro4
 import uuid
-Pyro4.config.HMAC_KEY = uuid.uuid4().hex
 
 def requires_pf(func):
     @wraps(func)
 
 if __name__ == "__main__":
     VRH = VolumeRenderingHandler()
-    print "HMAC KEY", Pyro4.config.HMAC_KEY
     if MPI.COMM_WORLD.rank == 0:
+        Pyro4.config.HMAC_KEY = uuid.uuid4().hex
+        print "HMAC KEY", Pyro4.config.HMAC_KEY
         Pyro4.Daemon.serveSimple(
             {VRH: "yt.volume_rendering_handler"},
             ns=False)