5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.SystemUtilities.OSUtilities</h1> |
9 <h1>eric7.SystemUtilities.OSUtilities</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing Operating System related utility functions. |
11 Module implementing Operating System related utility functions. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
|
16 <table> |
15 <table> |
17 <tr><td>None</td></tr> |
16 <tr><td>None</td></tr> |
18 </table> |
17 </table> |
|
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
|
21 <table> |
20 <table> |
22 <tr><td>None</td></tr> |
21 <tr><td>None</td></tr> |
23 </table> |
22 </table> |
|
23 |
24 <h3>Functions</h3> |
24 <h3>Functions</h3> |
25 |
|
26 <table> |
25 <table> |
27 |
|
28 <tr> |
26 <tr> |
29 <td><a href="#getEnvironmentEntry">getEnvironmentEntry</a></td> |
27 <td><a href="#getEnvironmentEntry">getEnvironmentEntry</a></td> |
30 <td>Module function to get an environment entry.</td> |
28 <td>Module function to get an environment entry.</td> |
31 </tr> |
29 </tr> |
32 <tr> |
30 <tr> |
72 <tr> |
70 <tr> |
73 <td><a href="#win32_getRealName">win32_getRealName</a></td> |
71 <td><a href="#win32_getRealName">win32_getRealName</a></td> |
74 <td>Function to get the user's real name (aka.</td> |
72 <td>Function to get the user's real name (aka.</td> |
75 </tr> |
73 </tr> |
76 </table> |
74 </table> |
|
75 |
77 <hr /> |
76 <hr /> |
78 <hr /> |
77 <hr /> |
79 <a NAME="getEnvironmentEntry" ID="getEnvironmentEntry"></a> |
78 <a NAME="getEnvironmentEntry" ID="getEnvironmentEntry"></a> |
80 <h2>getEnvironmentEntry</h2> |
79 <h2>getEnvironmentEntry</h2> |
81 <b>getEnvironmentEntry</b>(<i>key, default=None</i>) |
80 <b>getEnvironmentEntry</b>(<i>key, default=None</i>) |
82 |
|
83 <p> |
81 <p> |
84 Module function to get an environment entry. |
82 Module function to get an environment entry. |
85 </p> |
83 </p> |
|
84 |
86 <dl> |
85 <dl> |
87 |
86 |
88 <dt><i>key</i> (str)</dt> |
87 <dt><i>key</i> (str)</dt> |
89 <dd> |
88 <dd> |
90 key of the requested environment entry |
89 key of the requested environment entry |
177 <hr /> |
176 <hr /> |
178 <hr /> |
177 <hr /> |
179 <a NAME="hasEnvironmentEntry" ID="hasEnvironmentEntry"></a> |
178 <a NAME="hasEnvironmentEntry" ID="hasEnvironmentEntry"></a> |
180 <h2>hasEnvironmentEntry</h2> |
179 <h2>hasEnvironmentEntry</h2> |
181 <b>hasEnvironmentEntry</b>(<i>key</i>) |
180 <b>hasEnvironmentEntry</b>(<i>key</i>) |
182 |
|
183 <p> |
181 <p> |
184 Module function to check, if the environment contains an entry. |
182 Module function to check, if the environment contains an entry. |
185 </p> |
183 </p> |
|
184 |
186 <dl> |
185 <dl> |
187 |
186 |
188 <dt><i>key</i> (str)</dt> |
187 <dt><i>key</i> (str)</dt> |
189 <dd> |
188 <dd> |
190 key of the requested environment entry |
189 key of the requested environment entry |
206 <hr /> |
205 <hr /> |
207 <hr /> |
206 <hr /> |
208 <a NAME="isFreeBsdPlatform" ID="isFreeBsdPlatform"></a> |
207 <a NAME="isFreeBsdPlatform" ID="isFreeBsdPlatform"></a> |
209 <h2>isFreeBsdPlatform</h2> |
208 <h2>isFreeBsdPlatform</h2> |
210 <b>isFreeBsdPlatform</b>(<i></i>) |
209 <b>isFreeBsdPlatform</b>(<i></i>) |
211 |
|
212 <p> |
210 <p> |
213 Function to check, if this is a BSD (FreeBSD) platform. |
211 Function to check, if this is a BSD (FreeBSD) platform. |
214 </p> |
212 </p> |
|
213 |
215 <dl> |
214 <dl> |
216 <dt>Return:</dt> |
215 <dt>Return:</dt> |
217 <dd> |
216 <dd> |
218 flag indicating BSD platform |
217 flag indicating BSD platform |
219 </dd> |
218 </dd> |
228 <hr /> |
227 <hr /> |
229 <hr /> |
228 <hr /> |
230 <a NAME="isLinuxPlatform" ID="isLinuxPlatform"></a> |
229 <a NAME="isLinuxPlatform" ID="isLinuxPlatform"></a> |
231 <h2>isLinuxPlatform</h2> |
230 <h2>isLinuxPlatform</h2> |
232 <b>isLinuxPlatform</b>(<i></i>) |
231 <b>isLinuxPlatform</b>(<i></i>) |
233 |
|
234 <p> |
232 <p> |
235 Function to check, if this is a Linux platform. |
233 Function to check, if this is a Linux platform. |
236 </p> |
234 </p> |
|
235 |
237 <dl> |
236 <dl> |
238 <dt>Return:</dt> |
237 <dt>Return:</dt> |
239 <dd> |
238 <dd> |
240 flag indicating Linux platform |
239 flag indicating Linux platform |
241 </dd> |
240 </dd> |
250 <hr /> |
249 <hr /> |
251 <hr /> |
250 <hr /> |
252 <a NAME="isMacPlatform" ID="isMacPlatform"></a> |
251 <a NAME="isMacPlatform" ID="isMacPlatform"></a> |
253 <h2>isMacPlatform</h2> |
252 <h2>isMacPlatform</h2> |
254 <b>isMacPlatform</b>(<i></i>) |
253 <b>isMacPlatform</b>(<i></i>) |
255 |
|
256 <p> |
254 <p> |
257 Function to check, if this is a Mac platform. |
255 Function to check, if this is a Mac platform. |
258 </p> |
256 </p> |
|
257 |
259 <dl> |
258 <dl> |
260 <dt>Return:</dt> |
259 <dt>Return:</dt> |
261 <dd> |
260 <dd> |
262 flag indicating Mac platform |
261 flag indicating Mac platform |
263 </dd> |
262 </dd> |
272 <hr /> |
271 <hr /> |
273 <hr /> |
272 <hr /> |
274 <a NAME="isWindowsPlatform" ID="isWindowsPlatform"></a> |
273 <a NAME="isWindowsPlatform" ID="isWindowsPlatform"></a> |
275 <h2>isWindowsPlatform</h2> |
274 <h2>isWindowsPlatform</h2> |
276 <b>isWindowsPlatform</b>(<i></i>) |
275 <b>isWindowsPlatform</b>(<i></i>) |
277 |
|
278 <p> |
276 <p> |
279 Function to check, if this is a Windows platform. |
277 Function to check, if this is a Windows platform. |
280 </p> |
278 </p> |
|
279 |
281 <dl> |
280 <dl> |
282 <dt>Return:</dt> |
281 <dt>Return:</dt> |
283 <dd> |
282 <dd> |
284 flag indicating Windows platform |
283 flag indicating Windows platform |
285 </dd> |
284 </dd> |
345 <hr /> |
344 <hr /> |
346 <hr /> |
345 <hr /> |
347 <a NAME="win32_getRealName" ID="win32_getRealName"></a> |
346 <a NAME="win32_getRealName" ID="win32_getRealName"></a> |
348 <h2>win32_getRealName</h2> |
347 <h2>win32_getRealName</h2> |
349 <b>win32_getRealName</b>(<i></i>) |
348 <b>win32_getRealName</b>(<i></i>) |
350 |
|
351 <p> |
349 <p> |
352 Function to get the user's real name (aka. display name) under Win32. |
350 Function to get the user's real name (aka. display name) under Win32. |
353 </p> |
351 </p> |
|
352 |
354 <dl> |
353 <dl> |
355 <dt>Return:</dt> |
354 <dt>Return:</dt> |
356 <dd> |
355 <dd> |
357 real name of the current user |
356 real name of the current user |
358 </dd> |
357 </dd> |