cnvogelg / amitools

Various tools for using AmigaOS programs on other platforms
250 stars 69 forks source link

Using amitools / xdftool in a Python script #172

Closed solarmon closed 1 year ago

solarmon commented 2 years ago

Hi,

Apologies for a very stupid stupid question.

I can install amitools using python -m pip install amitools and this seems to install .exe files in the Scripts location of the Windows python environment I am using, which I can use from the MSDOS command line.

However, how would I use amitools within an actual python script? Specifically, I would like to use xdftool to process and analyse ADF files. I will also be using pyinstaller to make an binary executable of the python script, if that is of any significance.

Can amitools be used as a python module, or should I just use the amitools .exe files instead?

Thank you in advance.

cnvogelg commented 1 year ago

Have a look at the scripts that are installed. (See amitools/tools in the source) They also import the amitools packages they need. You can have a similar approach and directly import amitools as you need. But please be aware that the APIs there are still beta and could change with any release...