diff options
author | Seungmin Ryu <yakkle@gmail.com> | 2020-02-26 17:17:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 08:17:01 +0000 |
commit | c3453b6c381d28377c8e0115bf1124b2ca7b3c2b (patch) | |
tree | a0fba9154991f4d4c6d89158a97550e02b8de64f /docs/render_cli.py | |
parent | 45d2802651cda42f3202945fee73835253782b4e (diff) | |
download | virtualenv-c3453b6c381d28377c8e0115bf1124b2ca7b3c2b.tar.gz |
handle application data folder is read only (#1661)
* fixed FileNotFoundError when directory isn't writable (#1640)
- when using docker, if `user_data_dir()` isn't writable directory,
`default_data_dir()` use `system temp directory` + `virtualenv`.
for example, tempdir is `/tmp`, it use `/tmp/virtualenv`
* start making the app-data more explicit and robust
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
* fix Windows
* fix docs
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
Co-authored-by: Bernát Gábor <gaborjbernat@gmail.com>
Diffstat (limited to 'docs/render_cli.py')
-rw-r--r-- | docs/render_cli.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/render_cli.py b/docs/render_cli.py index 4417c63..88549ec 100644 --- a/docs/render_cli.py +++ b/docs/render_cli.py @@ -166,7 +166,7 @@ class CliTable(SphinxDirective): @staticmethod def _get_help_text(row): name = row.names[0] - if name in ("--creator", "--clear-app-data"): + if name in ("--creator",): content = row.help[: row.help.index("(") - 1] else: content = row.help @@ -196,6 +196,8 @@ class CliTable(SphinxDirective): name = row.names[0] if name == "-p": default_body = n.Text("the python executable virtualenv is installed into") + elif name == "--app-data": + default_body = n.Text("platform specific application data folder") elif name == "--activators": default_body = n.Text("comma separated list of activators supported") elif name == "--creator": |