src/eric7/Documentation/Source/eric7.SystemUtilities.PythonUtilities.html

branch
eric7
changeset 10358
957c9de01d42
parent 9624
b47dfa7a137d
child 10431
64157aeb0312
equal deleted inserted replaced
10357:ac30c311d35f 10358:957c9de01d42
24 <h3>Functions</h3> 24 <h3>Functions</h3>
25 25
26 <table> 26 <table>
27 27
28 <tr> 28 <tr>
29 <td><a href="#__searchInterpreters_Linux">__searchInterpreters_Linux</a></td>
30 <td>Function to determine a list of all Python interpreters available via the executable search path (i.e.</td>
31 </tr>
32 <tr>
33 <td><a href="#__searchInterpreters_Windows">__searchInterpreters_Windows</a></td>
34 <td>Function to determine a list of all Python interpreters available via the executable search path (i.e.</td>
35 </tr>
36 <tr>
29 <td><a href="#determinePythonVersion">determinePythonVersion</a></td> 37 <td><a href="#determinePythonVersion">determinePythonVersion</a></td>
30 <td>Function to determine the python version of a given file.</td> 38 <td>Function to determine the python version of a given file.</td>
31 </tr> 39 </tr>
32 <tr> 40 <tr>
41 <td><a href="#getExePath">getExePath</a></td>
42 <td></td>
43 </tr>
44 <tr>
33 <td><a href="#getPythonExecutable">getPythonExecutable</a></td> 45 <td><a href="#getPythonExecutable">getPythonExecutable</a></td>
34 <td>Function to determine the path of the (non-windowed) Python executable.</td> 46 <td>Function to determine the path of the (non-windowed) Python executable.</td>
35 </tr> 47 </tr>
36 <tr> 48 <tr>
37 <td><a href="#getPythonLibPath">getPythonLibPath</a></td> 49 <td><a href="#getPythonLibPath">getPythonLibPath</a></td>
47 </tr> 59 </tr>
48 <tr> 60 <tr>
49 <td><a href="#getPythonVersion">getPythonVersion</a></td> 61 <td><a href="#getPythonVersion">getPythonVersion</a></td>
50 <td>Function to get the Python version (major, minor) as an integer value.</td> 62 <td>Function to get the Python version (major, minor) as an integer value.</td>
51 </tr> 63 </tr>
64 <tr>
65 <td><a href="#searchInterpreters">searchInterpreters</a></td>
66 <td>Function to determine a list of all Python interpreters available via the executable search path (i.e.</td>
67 </tr>
52 </table> 68 </table>
69 <hr />
70 <hr />
71 <a NAME="__searchInterpreters_Linux" ID="__searchInterpreters_Linux"></a>
72 <h2>__searchInterpreters_Linux</h2>
73 <b>__searchInterpreters_Linux</b>(<i>environments=None</i>)
74
75 <p>
76 Function to determine a list of all Python interpreters available via the
77 executable search path (i.e. PATH) (non Windows variant).
78 </p>
79 <dl>
80
81 <dt><i>environments</i> (list of str (optional))</dt>
82 <dd>
83 list of environment directories to scan for Python interpreters
84 (defaults to None)
85 </dd>
86 </dl>
87 <dl>
88 <dt>Return:</dt>
89 <dd>
90 list of found interpreter executables
91 </dd>
92 </dl>
93 <dl>
94 <dt>Return Type:</dt>
95 <dd>
96 list of str
97 </dd>
98 </dl>
99 <div align="right"><a href="#top">Up</a></div>
100 <hr />
101 <hr />
102 <a NAME="__searchInterpreters_Windows" ID="__searchInterpreters_Windows"></a>
103 <h2>__searchInterpreters_Windows</h2>
104 <b>__searchInterpreters_Windows</b>(<i>environments=None</i>)
105
106 <p>
107 Function to determine a list of all Python interpreters available via the
108 executable search path (i.e. PATH) (Windows variant).
109 </p>
110 <dl>
111
112 <dt><i>environments</i> (list of str (optional))</dt>
113 <dd>
114 list of environment directories to scan for Python interpreters
115 (defaults to None)
116 </dd>
117 </dl>
118 <dl>
119 <dt>Return:</dt>
120 <dd>
121 list of found interpreter executables
122 </dd>
123 </dl>
124 <dl>
125 <dt>Return Type:</dt>
126 <dd>
127 list of str
128 </dd>
129 </dl>
130 <div align="right"><a href="#top">Up</a></div>
53 <hr /> 131 <hr />
54 <hr /> 132 <hr />
55 <a NAME="determinePythonVersion" ID="determinePythonVersion"></a> 133 <a NAME="determinePythonVersion" ID="determinePythonVersion"></a>
56 <h2>determinePythonVersion</h2> 134 <h2>determinePythonVersion</h2>
57 <b>determinePythonVersion</b>(<i>filename, source, editor=None</i>) 135 <b>determinePythonVersion</b>(<i>filename, source, editor=None</i>)
82 </dd> 160 </dd>
83 </dl> 161 </dl>
84 <div align="right"><a href="#top">Up</a></div> 162 <div align="right"><a href="#top">Up</a></div>
85 <hr /> 163 <hr />
86 <hr /> 164 <hr />
165 <a NAME="getExePath" ID="getExePath"></a>
166 <h2>getExePath</h2>
167 <b>getExePath</b>(<i>branch, access, versionStr</i>)
168
169 <div align="right"><a href="#top">Up</a></div>
170 <hr />
171 <hr />
87 <a NAME="getPythonExecutable" ID="getPythonExecutable"></a> 172 <a NAME="getPythonExecutable" ID="getPythonExecutable"></a>
88 <h2>getPythonExecutable</h2> 173 <h2>getPythonExecutable</h2>
89 <b>getPythonExecutable</b>(<i></i>) 174 <b>getPythonExecutable</b>(<i></i>)
90 175
91 <p> 176 <p>
179 An integer representing major and minor version number (integer) 264 An integer representing major and minor version number (integer)
180 </dd> 265 </dd>
181 </dl> 266 </dl>
182 <div align="right"><a href="#top">Up</a></div> 267 <div align="right"><a href="#top">Up</a></div>
183 <hr /> 268 <hr />
269 <hr />
270 <a NAME="searchInterpreters" ID="searchInterpreters"></a>
271 <h2>searchInterpreters</h2>
272 <b>searchInterpreters</b>(<i>environments=None</i>)
273
274 <p>
275 Function to determine a list of all Python interpreters available via the
276 executable search path (i.e. PATH) (Windows variant).
277 </p>
278 <dl>
279
280 <dt><i>environments</i> (list of str (optional))</dt>
281 <dd>
282 list of environment directories to scan for Python interpreters
283 (defaults to None)
284 </dd>
285 </dl>
286 <dl>
287 <dt>Return:</dt>
288 <dd>
289 list of found interpreter executables
290 </dd>
291 </dl>
292 <dl>
293 <dt>Return Type:</dt>
294 <dd>
295 list of str
296 </dd>
297 </dl>
298 <div align="right"><a href="#top">Up</a></div>
299 <hr />
184 </body></html> 300 </body></html>

eric ide

mercurial