PyUtilib / pyutilib

A collection of general Python utilities, including logging and file IO, subprocess management, plugin systems, and workflow management.
BSD 3-Clause "New" or "Revised" License
34 stars 20 forks source link

Support expanding user (~) and variables ($HOME) in import_file #103

Closed jsiirola closed 4 years ago

jsiirola commented 4 years ago

Fixes: #N/A

Summary/Motivation:

This allows including user (~/file.py) and environment variables (e.g., $HOME/file.py) in the string passed to import_file()

Changes proposed in this PR:

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.
coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.007%) to 62.373% when pulling 22b951d7796c84bf4d4a49bd9008ba471e251473 on import_expand_vars into 732322e4b9be17414b251dc05f1e9bf362a7c6ee on master.