diff --git a/jupyterhub/services/service.py b/jupyterhub/services/service.py index f24645ad..1093c78e 100644 --- a/jupyterhub/services/service.py +++ b/jupyterhub/services/service.py @@ -41,6 +41,7 @@ A hub-managed service with no URL:: import pipes import shutil +import os from subprocess import Popen from traitlets import ( @@ -104,6 +105,8 @@ class _ServiceSpawner(LocalProcessSpawner): def start(self): """Start the process""" env = self.get_env() + if os.name == 'nt': + env['SYSTEMROOT'] = os.environ['SYSTEMROOT'] cmd = self.cmd self.log.info("Spawning %s", ' '.join(pipes.quote(s) for s in cmd))