From be4f8fc0ba3d2840c1ad1993cad45622e695ee5e Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Tue, 28 Sep 2021 17:18:10 +0200 Subject: [PATCH] add some random code --- someCode.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 someCode.py diff --git a/someCode.py b/someCode.py new file mode 100644 index 0000000..9162330 --- /dev/null +++ b/someCode.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python3 +#coding: utf-8 + +""" +Code for testing packaging. +""" +import sys + +def function1(): + print("Hello Word") + +def function2(): + print(" ".join(sys.argv)) + print("-> Hi!") + +def main(): + if "--args" in sys.argv: + function2() + else: + function1() + +if __name__ == "__main__": + main()