diff -r 9117c08e4707 -r dc7f25f2f7e4 src/eric7/Documentation/Source/eric7.SystemUtilities.PythonUtilities.html --- a/src/eric7/Documentation/Source/eric7.SystemUtilities.PythonUtilities.html Tue Jul 09 14:09:40 2024 +0200 +++ b/src/eric7/Documentation/Source/eric7.SystemUtilities.PythonUtilities.html Tue Jul 09 17:20:18 2024 +0200 @@ -32,10 +32,6 @@ <td>Function to determine a list of all Python interpreters available via the executable search path (i.e.</td> </tr> <tr> -<td><a href="#determinePythonVersion">determinePythonVersion</a></td> -<td>Function to determine the python version of a given file.</td> -</tr> -<tr> <td><a href="#getExePath">getExePath</a></td> <td></td> </tr> @@ -60,6 +56,10 @@ <td>Function to get the Python version (major, minor) as an integer value.</td> </tr> <tr> +<td><a href="#isPythonSource">isPythonSource</a></td> +<td>Function to check for a Python source code file.</td> +</tr> +<tr> <td><a href="#searchInterpreters">searchInterpreters</a></td> <td>Function to determine a list of all Python interpreters available via the executable search path (i.e.</td> </tr> @@ -129,43 +129,6 @@ <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> -<a NAME="determinePythonVersion" ID="determinePythonVersion"></a> -<h2>determinePythonVersion</h2> -<b>determinePythonVersion</b>(<i>filename, source, editor=None</i>) -<p> - Function to determine the python version of a given file. -</p> - -<dl> - -<dt><i>filename</i> (str)</dt> -<dd> -name of the file with extension -</dd> -<dt><i>source</i> (str)</dt> -<dd> -of the file -</dd> -<dt><i>editor</i> (Editor)</dt> -<dd> -reference to the editor, if the file is opened already -</dd> -</dl> -<dl> -<dt>Return:</dt> -<dd> -Python version if file is Python3 -</dd> -</dl> -<dl> -<dt>Return Type:</dt> -<dd> -int -</dd> -</dl> -<div align="right"><a href="#top">Up</a></div> -<hr /> -<hr /> <a NAME="getExePath" ID="getExePath"></a> <h2>getExePath</h2> <b>getExePath</b>(<i>branch, access, versionStr</i>) @@ -283,6 +246,44 @@ <div align="right"><a href="#top">Up</a></div> <hr /> <hr /> +<a NAME="isPythonSource" ID="isPythonSource"></a> +<h2>isPythonSource</h2> +<b>isPythonSource</b>(<i>filename, source, editor=None</i>) +<p> + Function to check for a Python source code file. +</p> + +<dl> + +<dt><i>filename</i> (str)</dt> +<dd> +name of the file with extension +</dd> +<dt><i>source</i> (str)</dt> +<dd> +of the file +</dd> +<dt><i>editor</i> (Editor (optional))</dt> +<dd> +reference to the editor, if the file is opened already + (defaults to None) +</dd> +</dl> +<dl> +<dt>Return:</dt> +<dd> +flag indicating Python source code +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> +<div align="right"><a href="#top">Up</a></div> +<hr /> +<hr /> <a NAME="searchInterpreters" ID="searchInterpreters"></a> <h2>searchInterpreters</h2> <b>searchInterpreters</b>(<i>environments=None</i>)