certbot/certbot-nginx/certbot_nginx
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
..
tests Ensure relpath is executed on paths in the same drive (#7335) 2019-08-23 12:53:30 -07:00
tls_configs Stop turning session tickets off in Nginx (#7344) 2019-08-21 14:29:10 -07:00
__init__.py s/Let's Encrypt/Certbot certbot-nginx 2016-04-13 16:49:30 -07:00
configurator.py Move Nginx TLS configuration files into a specific folder (#7300) 2019-08-05 15:45:08 -07:00
constants.py Stop turning session tickets off in Nginx (#7344) 2019-08-21 14:29:10 -07:00
display_ops.py Fix Pylint upgrade issues 2018-05-16 20:37:39 +00:00
http_01.py [Windows] Security model for files permissions - STEP 2 (#6895) 2019-04-12 13:32:51 -07:00
nginxparser.py Update parser to match new Nginx functionality (#6381) 2018-09-18 12:52:11 -07:00
obj.py Fix Pylint upgrade issues 2018-05-16 20:37:39 +00:00
parser.py [Windows] Security model for files permissions - STEP 2 (#6895) 2019-04-12 13:32:51 -07:00
parser_obj.py Update to Pylint 1.9.4 and corrections 2019-04-09 09:22:19 +02:00