Skip to content

Commit

Permalink
Only set LD_LIBRARY_PATH on Unix
Browse files Browse the repository at this point in the history
Signed-off-by: Steeve Morin <[email protected]>
  • Loading branch information
steeve committed Jun 15, 2015
1 parent 923bc31 commit 52dc6e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/site-packages/pulsar/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ def start_pulsard(**kwargs):
args = [pulsar_binary]
kwargs["cwd"] = pulsar_dir

env = os.environ.copy()
env["LD_LIBRARY_PATH"] = "%s:%s" % (pulsar_dir, env.get("LD_LIBRARY_PATH", ""))
kwargs["env"] = env

if PLATFORM["os"] == "windows":
si = subprocess.STARTUPINFO()
si.dwFlags = STARTF_USESHOWWINDOW
si.wShowWindow = SW_HIDE
kwargs["startupinfo"] = si
else:
env = os.environ.copy()
env["LD_LIBRARY_PATH"] = "%s:%s" % (pulsar_dir, env.get("LD_LIBRARY_PATH", ""))
kwargs["env"] = env

return subprocess.Popen(args, **kwargs)

Expand Down

0 comments on commit 52dc6e0

Please sign in to comment.