Commit e799ffb
committed
Support pathological tmpdirs in TexManager.
tex does not support paths that contain tildes, and tmpdir may be such a
path. Fortunately, we can arrange to refer to paths relatively instead.
No test, as that would involve setting up another MPLCONFIGDIR just for
that purpose, which is rather costly as we'd need to regen the font
cache for it. But one can try e.g.
```
MPLCONFIGDIR=/tmp/has~tilde python -c 'from pylab import *; figtext(.5, .5, "a", usetex=True); show()'
```1 parent fea21af commit e799ffb
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
267 | 270 | | |
268 | 271 | | |
269 | 272 | | |
270 | | - | |
| 273 | + | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| |||
0 commit comments