File: main.py

package info (click to toggle)
python-pipx 1.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,768 kB
  • sloc: python: 9,813; makefile: 17; sh: 7
file content (17 lines) | stat: -rw-r--r-- 282 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import sys

try:
    import pycowsay.main

    has_pycowsay = True
except ImportError:
    has_pycowsay = False


def main():
    print(f"You said:\n    {' '.join(sys.argv[1:])}")

    if has_pycowsay:
        print()
        print("In cow, you said:")
        pycowsay.main.main()