--- a/src/eric7/Documentation/Source/eric7.Utilities.ClassBrowsers.__init__.html Fri Jun 14 11:18:10 2024 +0200 +++ b/src/eric7/Documentation/Source/eric7.Utilities.ClassBrowsers.__init__.html Fri Jun 14 11:23:45 2024 +0200 @@ -42,6 +42,10 @@ <h3>Functions</h3> <table> <tr> +<td><a href="#determineSourceType">determineSourceType</a></td> +<td>Function to determine the type of a source file given its name.</td> +</tr> +<tr> <td><a href="#find_module">find_module</a></td> <td>Function to extend the Python module finding mechanism.</td> </tr> @@ -77,6 +81,39 @@ <hr /> <hr /> +<a NAME="determineSourceType" ID="determineSourceType"></a> +<h2>determineSourceType</h2> +<b>determineSourceType</b>(<i>name, isPyFile=False</i>) +<p> + Function to determine the type of a source file given its name. +</p> + +<dl> + +<dt><i>name</i> (str)</dt> +<dd> +file name or module name +</dd> +<dt><i>isPyFile</i> (bool (optional))</dt> +<dd> +flag indicating a Python file (defaults to False) +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +source file type +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +int +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +<hr /> <a NAME="find_module" ID="find_module"></a> <h2>find_module</h2> <b>find_module</b>(<i>name, path, isPyFile=False</i>) @@ -218,7 +255,7 @@ <hr /> <a NAME="readmodule" ID="readmodule"></a> <h2>readmodule</h2> -<b>readmodule</b>(<i>module, path=None, isPyFile=False</i>) +<b>readmodule</b>(<i>module, searchPath=None, isPyFile=False</i>) <p> Function to read a source file and return a dictionary of classes, functions, modules, etc. . @@ -234,7 +271,7 @@ <dd> name of the source file </dd> -<dt><i>path</i> (list of str)</dt> +<dt><i>searchPath</i> (list of str)</dt> <dd> list of paths the file should be searched in </dd>