Skip to content

Use of environment vars in paths is deprecated, Warning in Python 3.7 #832

Description

warnings.warn("The use of environment variables in paths is deprecated" +
/usr/local/lib/python3.7/dist-packages/git/repo/base.py:127: UserWarning: The use of environment variables in paths is deprecated for security reasons and may be removed in the future!!

However, I'm passing absolute paths to the Repo class, this creates a lot of warning messages in the script output

Activity

  1. Byron commented on Jul 6, 2019

    @Byron
    Member

    Can you verify the paths are indeed not containing any of the characters the logic looks for? Namely % and $.

  2. added 2 commits that reference this issue on Nov 22, 2019
    eb7fd75
    8072a94
  3. added this to the v3.0.6 - Bugfixes milestone on Dec 6, 2019
  4. added a commit that references this issue on Mar 7, 2020
  5. added a commit that references this issue on Apr 28, 2025
    313b3b4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions