mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 07:18:27 +01:00
summon: revert dvc.api._invoke_mehtod() considerations
It's now thread-safe, but the rest is still relevant.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user