summon: revert dvc.api._invoke_mehtod() considerations

It's now thread-safe, but the rest is still relevant.
This commit is contained in:
Alexander Schepanovski
2020-01-13 15:19:54 +07:00
parent 4a3dd63720
commit d0de9d0ed0
+4
View File
@@ -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: