summary refs log tree commit diff
path: root/pkgs/applications/version-management/dvc/dvc-daemon.patch
blob: 5c2d363b17f107e9ff96113bf2d201db2fe8e6aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/dvc/daemon.py b/dvc/daemon.py
index 1d67a37..7ce6fde 100644
--- a/dvc/daemon.py
+++ b/dvc/daemon.py
@@ -67,14 +67,8 @@ def daemon(args):
     Args:
         args (list): list of arguments to append to `dvc daemon` command.
     """
-    cmd = [sys.executable]
-    if not is_binary():
-        cmd += ['-m', 'dvc']
-    cmd += ['daemon', '-q'] + args
-
-    env = fix_env()
-    file_path = os.path.abspath(inspect.stack()[0][1])
-    env['PYTHONPATH'] = os.path.dirname(os.path.dirname(file_path))
+    cmd = [ "@dvc@" , "daemon", "-q"] + args
+    env = None
 
     logger.debug("Trying to spawn '{}' with env '{}'".format(cmd, env))