Skip to content

Commit

Permalink
summon: revert dvc.api._invoke_mehtod() considerations
Browse files Browse the repository at this point in the history
It's now thread-safe, but the rest is still relevant.
  • Loading branch information
Suor committed Jan 13, 2020
1 parent 4a3dd63 commit d0de9d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dvc/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d0de9d0

Please sign in to comment.