Commit b6761e5a authored by Momme Butenschoen's avatar Momme Butenschoen

Conversion from python2 to python3.

parent f9a91ae9
#!/bin/bash
#
#BOP
# !DESCRIPTION:
# Convert to python 3. The script converts the file in the file
# argument to python. It creates the converted file in th py3 sub-folder.
# Additionaly the shell invokation will be changed to
# explicitly invoke python3.
#EOP
file=PyProTex.py
mkdir -p py3
2to3 -p -n -w -o py3 $file
# make the shell invokation python3 instead of python
sed -i "s/\#\!\/usr\/bin\/python\b/\#\!\/usr\/bin\/python3/" $file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment