python command not working in ubuntu 20.04 for apidocs and marvin (#6889)

Co-authored-by: Vivek Ps <vivekcek@gail.com>
This commit is contained in:
vivekcek 2022-11-30 13:42:03 +05:30 committed by GitHub
parent 94fd03df13
commit 4abb8b9ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -77,10 +77,10 @@ set -e
gen_toc_file="`cygpath -w $thisdir`\\gen_toc.py" gen_toc_file="`cygpath -w $thisdir`\\gen_toc.py"
for file in `find . -type f`; do for file in `find . -type f`; do
echo "Parse file $file"; echo "Parse file $file";
python $gen_toc_file $file; python3 $gen_toc_file $file;
done done
else else
python "$thisdir/gen_toc.py" $(find . -type f) python3 "$thisdir/gen_toc.py" $(find . -type f)
fi fi
cat generatetoc_include.xsl >> generatetoc.xsl cat generatetoc_include.xsl >> generatetoc.xsl

View File

@ -42,7 +42,7 @@ def replaceVersion(fname, version):
def runSetupScript(args): def runSetupScript(args):
"""Invoke setup.py with the provided arguments""" """Invoke setup.py with the provided arguments"""
cmd = ['python', setupScript] + args cmd = ['python3', setupScript] + args
exitCode = subprocess.call(cmd) exitCode = subprocess.call(cmd)
return exitCode return exitCode

View File

@ -86,7 +86,7 @@
</goals> </goals>
<configuration> <configuration>
<workingDirectory>${exec.workingdir}</workingDirectory> <workingDirectory>${exec.workingdir}</workingDirectory>
<executable>python</executable> <executable>python3</executable>
<arguments> <arguments>
<argument>mvn-setup.py</argument> <argument>mvn-setup.py</argument>
<argument>${project.version}</argument> <argument>${project.version}</argument>
@ -140,7 +140,7 @@
</goals> </goals>
<configuration> <configuration>
<workingDirectory>${exec.workingdir}</workingDirectory> <workingDirectory>${exec.workingdir}</workingDirectory>
<executable>python</executable> <executable>python3</executable>
<arguments> <arguments>
<argument>mvn-setup.py</argument> <argument>mvn-setup.py</argument>
<argument>${project.version}</argument> <argument>${project.version}</argument>
@ -209,7 +209,7 @@
</goals> </goals>
<configuration> <configuration>
<workingDirectory>${basedir}/marvin</workingDirectory> <workingDirectory>${basedir}/marvin</workingDirectory>
<executable>python</executable> <executable>python3</executable>
<arguments> <arguments>
<argument>deployAndRun.py</argument> <argument>deployAndRun.py</argument>
<argument>-c</argument> <argument>-c</argument>