certbot/certbot
Adrien Ferrand 0324d1740e Ensure relpath is executed on paths in the same drive (#7335)
On Windows you can have several drives (`C:`, `D:`, ...), that is the roughly (really roughly) equivalent of mount points, since each drive is usually associated to a specific physical partition.

So you can have paths like `C:\one\path`, `D:\another\path`.

In parallel, `os.path.relpath(path, start='.')` calculates the relative path between the given `path` and a `start` path (current directory if not provided). In recent versions of Python, `os.path.relpath` will fail if `path` and `start` are not on the same drive, because a relative path between two paths like `C:\one\path`, `D:\another\path` is not possible.

In saw unit tests failing because of this in two locations. This occurs when the certbot codebase that is tested is on a given drive (like `D:`) while the default temporary directory used by `tempfile` is on another drive (most of the time located in `C:` drive).

This PR fixes that.
2019-08-23 12:53:30 -07:00
..
compat [Windows] Fix closing files descriptors during unit tests (#7326) 2019-08-16 11:08:42 +02:00
display Replace Some Platform-Specific Line Separation (#7203) 2019-06-28 13:06:52 -07:00
plugins Fix unit tests on Windows (#7270) 2019-08-01 10:39:46 -07:00
tests Ensure relpath is executed on paths in the same drive (#7335) 2019-08-23 12:53:30 -07:00
.gitignore s/letsencrypt/certbot 2016-04-13 16:03:59 -07:00
__init__.py Bump version to 0.38.0 2019-08-07 10:35:13 -07:00
account.py [Windows] Security model for files permissions - STEP 3f (#7233) 2019-07-26 00:25:36 +02:00
achallenges.py Use josepy instead of acme.jose. (#5203) 2017-12-11 11:25:09 -08:00
auth_handler.py Merge branch 'master' into pylint 2019-04-02 22:32:01 +02:00
cert_manager.py [Windows] Security model for files permissions - STEP 3f (#7233) 2019-07-26 00:25:36 +02:00
cli.py Simplify and deprecate viewing config changes (#7198) 2019-07-02 17:20:12 -07:00
client.py Update link to the Server forum category (#7309) 2019-08-08 11:44:21 -07:00
configuration.py [Windows] Security model for files permissions - STEP 2 (#6895) 2019-04-12 13:32:51 -07:00
constants.py Fix unit tests on Windows (#7270) 2019-08-01 10:39:46 -07:00
crypto_util.py [Windows] Security model for files permissions - STEP 3f (#7233) 2019-07-26 00:25:36 +02:00
eff.py Merge branch 'master' into pylint 2019-04-02 22:32:01 +02:00
error_handler.py [Windows] Security model for files permissions - STEP 2 (#6895) 2019-04-12 13:32:51 -07:00
errors.py PluginStorage to store variables between invocations. (#5468) 2018-04-11 08:54:55 -07:00
hooks.py Fix unit tests on Windows (#7270) 2019-08-01 10:39:46 -07:00
interfaces.py Simplify and deprecate viewing config changes (#7198) 2019-07-02 17:20:12 -07:00
lock.py [Windows] Security model for files permissions - STEP 3c (#6967) 2019-07-02 16:21:24 -07:00
log.py [Windows] Security model for files permissions - STEP 3f (#7233) 2019-07-26 00:25:36 +02:00
main.py [Windows] Security model for files permissions - STEP 3f (#7233) 2019-07-26 00:25:36 +02:00
notify.py s/Let's Encrypt/Certbot 2016-04-13 16:13:50 -07:00
ocsp.py Validate OCSP responses in case an explicit responder is designated (#7054) 2019-06-03 22:55:26 +03:00
renewal.py Avoid to delete both webroot_map and webroot_path (#7095) 2019-05-28 15:16:12 -07:00
reporter.py Refactoring for better logging (#4444) 2017-03-30 16:17:57 -07:00
reverter.py [Windows] Security model for files permissions - STEP 3f (#7233) 2019-07-26 00:25:36 +02:00
ssl-dhparams.pem Use ffdhe2048 Nginx DH params to fix Weak-DH bug (#4973) 2017-09-01 07:57:30 -07:00
storage.py [Windows] Security model for files permissions - STEP 3e (#7182) 2019-07-10 16:26:30 -07:00
updater.py Do not call IPlugin.prepare() for updaters when running renew (#6167) 2018-07-06 13:19:29 -07:00
util.py Fix unit tests on Windows (#7270) 2019-08-01 10:39:46 -07:00