from pipenv.patched import pew

if __name__ == '__main__':
    pew.pew.pew()

from pipenv.patched import pew
import os
import sys

pipenv_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
pipenv_vendor = os.sep.join([pipenv_root, 'vendor'])
pipenv_patched = os.sep.join([pipenv_root, 'patched'])


if __name__ == '__main__':
    sys.path.insert(0, pipenv_vendor)
    sys.path.insert(0, pipenv_patched)
    pew.pew.pew()

Add vendor and patch directories to pew path
Add vendor and patch directories to pew path

- Fixes #1661

  from pipenv.patched import pew
+ import os
+ import sys
+ 
+ pipenv_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ pipenv_vendor = os.sep.join([pipenv_root, 'vendor'])
+ pipenv_patched = os.sep.join([pipenv_root, 'patched'])
+ 
  
  if __name__ == '__main__':
+     sys.path.insert(0, pipenv_vendor)
+     sys.path.insert(0, pipenv_patched)
      pew.pew.pew()
  
Add vendor and patch directories to pew path
## Code Before:
from pipenv.patched import pew

if __name__ == '__main__':
    pew.pew.pew()

## Instruction:
Add vendor and patch directories to pew path
## Code After:
from pipenv.patched import pew
import os
import sys

pipenv_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
pipenv_vendor = os.sep.join([pipenv_root, 'vendor'])
pipenv_patched = os.sep.join([pipenv_root, 'patched'])


if __name__ == '__main__':
    sys.path.insert(0, pipenv_vendor)
    sys.path.insert(0, pipenv_patched)
    pew.pew.pew()
