A conversion of macros in *.py format is done with the 2to3 tool. For a detailed documentation of the tool, see https://docs.python.org/3.10/library/2to3.html.

  1. The 2to3 tool is available on your PC.
  1. Open a command line tool.
  2. Command line is ready.
  3. Navigate to the location of your python.exe and run the Python 2to3 tool on your OAD macros with python ending (*.py) with the command $ 2to3 file.py. For example, to convert a script called Amacrolib.py, type $ 2to3 Amacrolib.py.
  4. The script is converted.