Skip to content

Commit

Permalink
Update test_documentation_examples.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed Jul 9, 2020
1 parent 7addb63 commit d0bec29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_documentation_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def test_documentation_examples(self):

this = os.path.abspath(os.path.dirname(__file__))
onxc = os.path.normpath(os.path.join(this, '..'))
pypath = os.environ['PYTHONPATH']
pypath = os.environ.get('PYTHONPATH', None)
sep = ";" if sys.platform == 'win32' else ':'
pypath = "" if pypath is None else (pypath + sep)
pypath = "" if pypath in (None, "") else (pypath + sep)
pypath += onxc
os.environ['PYTHONPATH'] = pypath
fold = os.path.normpath(os.path.join(this, '..', 'examples'))
Expand Down

0 comments on commit d0bec29

Please sign in to comment.