Debian Codegraph @

docs/env_vars.md

raw
1 ---
2 title: Environment variables
3 ---
4
5 <table>
6
7 <tr><th>Variable</th><th>Description</th></tr>
8
9 <tr><td>
10 <a if="pyocd_project_dir"><p><code>PYOCD_COLOR</code></p></a>
11 </td><td>
12 <p>Changes the default color output setting. Must be one of <code>auto</code>, <code>always</code>, or
13 <code>never</code>. If not defined, the default is <code>auto</code>, which will enable color only when
14 outputting to a tty. Overridden by <code>--color</code> on the command line.</p>
15 </td></tr>
16
17 <tr><td>
18 <a if="pyocd_history"><p><code>PYOCD_HISTORY</code></p></a>
19 </td><td>
20 <p>Path to the <code>pyocd commander</code> command history file. The default is <code>~/.pyocd_history</code>.</p>
21 </td></tr>
22
23 <tr><td>
24 <a if="pyocd_history_length"><p><code>PYOCD_HISTORY_LENGTH</code></p></a>
25 </td><td>
26 <p>Maximum number of entries in the command history file. Set to -1 for unlimited. Default is 1000.</p>
27 </td></tr>
28
29 <tr><td>
30 <a if="pyocd_project_dir"><p><code>PYOCD_PROJECT_DIR</code></p></a>
31 </td><td>
32 <p>Sets the path to pyOCD's project directory. This variable acts as a fallback if the <code>project_dir</code>
33 session option is not specified.</p>
34 </td></tr>
35
36 <tr><td>
37 <a if="pyocd_usb_backend"><p><code>PYOCD_USB_BACKEND</code></p></a>
38 </td><td>
39 <p>This variable overrides the default selection of the USB backend for CMSIS-DAP v1 probes. The accepted
40 values are <code>hidapiusb</code>, <code>pyusb</code>, and <code>pywinusb</code>. An empty value is the same as
41 unset. CMSIS-DAP v2 probes are unaffected by the environment variable; pyusb is always used.</p>
42 <p>Forcing the USB backend is really only useful on Windows, because both <code>hidapiusb</code> and
43 <code>pywinusb</code> backends are available. Note that pyOCD only installs the <code>hidapiusb</code> backend
44 by default.</p>
45 </td></tr>
46
47 </table>
48