Python Forum
now i wish Python had a way to add commands
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
now i wish Python had a way to add commands
#8
My xonsh shell uses /usr/bin/python (which is linked to python3) as Python interpreter, in Ubuntu 20.04. So it uses the distribution's Python 3 interpreter. Of course Xonsh contains a specific parser for the xonsh language, which is a mix of python and shell constructs.
~/P/S/2021-12 import sys
~/P/S/2021-12 sys.executable
'/usr/bin/python'
~/P/S/2021-12 echo "Hello xonsh!"
Hello xonsh!
Reply


Messages In This Thread
RE: now i wish Python had a way to add commands - by Gribouillis - Dec-28-2021, 07:48 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020