From d0de9d0ed0a7df3284aabe6ec24665e1c6187cd3 Mon Sep 17 00:00:00 2001 From: Alexander Schepanovski Date: Mon, 13 Jan 2020 15:19:54 +0700 Subject: [PATCH] summon: revert dvc.api._invoke_mehtod() considerations It's now thread-safe, but the rest is still relevant. --- dvc/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dvc/api.py b/dvc/api.py index 44999af75..525459b7e 100644 --- a/dvc/api.py +++ b/dvc/api.py @@ -187,6 +187,10 @@ def _get_object_desc(name, path): @wrap_with(threading.Lock()) def _invoke_method(call, args, path): + # XXX: Some issues with this approach: + # * Import will pollute sys.modules + # * sys.path manipulation is "theoretically" not needed, + # but tests are failing for an unknown reason. cwd = os.getcwd() try: