albertyw / itolapi

Python API for the Interactive Tree of Life (iTOL)
MIT License
35 stars 11 forks source link

Missing shebang #33

Closed rhayes777 closed 2 years ago

rhayes777 commented 2 years ago

Not sure if I'm missing something but when I try to run itol.py in the terminal it tries to interpret it as bash.

I think this could be resolved by adding a shebang:

#!/usr/bin/env python

To the very top of itol.py

albertyw commented 2 years ago

Not sure how I didn't catch that before. Fixed in ab6a976.

Although the README has direct execution of itol.py and itolexport.py as examples, I expect most people would prefer writing a python script to import and use this as a library rather than a CLI.

rhayes777 commented 2 years ago

Great thanks.

Yeah I intend to use it in a python script but it's nice to use it in terminal to see it working first.