aboutsummaryrefslogtreecommitdiff
path: root/challenge-112/colin-crain/python/ch-1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-112/colin-crain/python/ch-1.py')
-rw-r--r--challenge-112/colin-crain/python/ch-1.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/challenge-112/colin-crain/python/ch-1.py b/challenge-112/colin-crain/python/ch-1.py
new file mode 100644
index 0000000000..652c0710c0
--- /dev/null
+++ b/challenge-112/colin-crain/python/ch-1.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python3
+#
+#
+# where-are-my-friends.py
+#
+#
+#
+# © 2021 colin crain
+## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
+
+import os
+import sys
+
+if len(sys.argv) > 1:
+ path = sys.argv[1]
+else:
+ path = '../../a/b/c///f/../d';
+
+canonical = os.path.realpath(path)
+
+print(canonical )