Skip to content

Commit

Permalink
Fixed[cookiecutter#824] - Used os path seperators
Browse files Browse the repository at this point in the history
  • Loading branch information
Theo committed May 23, 2019
1 parent ee07158 commit 50c6ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookiecutter/hooks.py
Expand Up @@ -159,7 +159,7 @@ def get_hooks_env(cwd='.', hooks_dir='hooks'):
hooks_env = os.environ.copy()

PYTHONPATH = hooks_env.get('PYTHONPATH', '')
hooks_env[str('PYTHONPATH')] = str('{0}:{1}'.format(
os.path.join(os.path.dirname(cwd), hooks_dir), str(PYTHONPATH)))
hooks_env[str('PYTHONPATH')] = str('{0}{1}{2}'.format(
os.path.join(os.path.dirname(cwd), hooks_dir), os.pathsep, str(PYTHONPATH)))

return hooks_env

0 comments on commit 50c6ca7

Please sign in to comment.