Permalink
Browse files

Modified common.py to check the environment variable 'NUKE_EXEC' befo…

…re defaulting to 'Nuke'
  • Loading branch information...
1 parent 5734ba8 commit 9571b8a675954da9185bc9e6c8b2cceaa59fee1b @HughMacdonald HughMacdonald committed Oct 31, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 nukeExternalControl/common.py
@@ -1,3 +1,5 @@
+import os
+
SOCKET_BUFFER_SIZE = 4096
MAX_SOCKET_BYTES = 2048
@@ -7,7 +9,9 @@
# This constant should be set to whatever absolute or relative call your system
# uses to launch Nuke (excluding any flags or arguments).
-NUKE_EXEC = 'Nuke'
+NUKE_EXEC = os.getenv("NUKE_EXEC")
+if NUKE_EXEC is None:
+ NUKE_EXEC = 'Nuke'
# Safe type lists for pickling. Objects whose types are not included in one
# of these lists will be represented by proxy objects on the client side.
@@ -25,4 +29,4 @@ class NukeManagerError(NukeConnectionError):
pass
class NukeServerError(NukeConnectionError):
- pass
+ pass

0 comments on commit 9571b8a

Please sign in to comment.