Unverified Commit 61f04e65 authored by kaiix's avatar kaiix Committed by GitHub
Browse files

Prefer virtualenv packages over global packages (#1383) (#1384)

parent 8d6d92aa
Loading
Loading
Loading
Loading
+1 −1
Changes for plugin/black.vim: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ def _initialize_black_env(upgrade=False):
  if first_install:
    print('Pro-tip: to upgrade Black in the future, use the :BlackUpgrade command and restart Vim.\n')
  if virtualenv_site_packages not in sys.path:
    sys.path.append(virtualenv_site_packages)
    sys.path.insert(0, virtualenv_site_packages)
  return True

if _initialize_black_env():