Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_fix_path prevents module from importing if PYTHONPATH is not set #73

Open
georgewhewell opened this issue Dec 8, 2016 · 0 comments
Open

Comments

@georgewhewell
Copy link

If PYTHONPATH is not set, AttributeError is thrown:

  File "snip", line 8, in <module>
    from pipeline import pipeline
  File "/Users/grw/src/cms/env/lib/python2.7/site-packages/pipeline/__init__.py", line 47, in <module>
    _fix_path()
  File "/Users/grw/src/cms/env/lib/python2.7/site-packages/pipeline/__init__.py", line 26, in _fix_path
    all_paths = os.environ.get('PYTHONPATH').split(os.pathsep)
AttributeError: 'NoneType' object has no attribute 'split'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant