← Back to team overview

divmod-dev team mailing list archive

[Bug 848493] Re: Incorrect extension of PYTHONPATH

 

** Changed in: python-axiom (Debian)
       Status: Unknown => Confirmed

** Changed in: epsilon (Debian)
       Status: Unknown => Confirmed

-- 
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for Divmod Axiom.
https://bugs.launchpad.net/bugs/848493

Title:
  Incorrect extension of PYTHONPATH

Status in Divmod Axiom:
  New
Status in A set of utility modules used by Divmod projects:
  New
Status in “epsilon” package in Debian:
  Confirmed
Status in “python-axiom” package in Debian:
  Confirmed

Bug description:
  If the PYTHONPATH environment variable is already empty, doing
  something like:

  PYTHONPATH="/path/to/dir:$PYTHONPATH" python [...]

  results in a PYTHONPATH of "/path/to/dir:". As the empty segment at
  the end is interpreted as . (the current directory), this is
  undesireable. The easiest way to avoid this is to do:

  PYTHONPATH="/path/to/dir${PYTHONPATH:+:$PYTHONPATH}" python [...]

  This defect is present in axiom.test.test_xatop in Axiom, as well as
  in epsilon.release in Epsilon.

To manage notifications about this bug go to:
https://bugs.launchpad.net/divmod-axiom/+bug/848493/+subscriptions


References