From 42f2a5f24b29ec702513d1f6ef5a990b8b13b8d1 Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Fri, 10 Jan 2025 19:08:20 +0100 Subject: [PATCH] Implemented viewing of current directory. --- wobbl_tools/text/tree_view.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wobbl_tools/text/tree_view.py b/wobbl_tools/text/tree_view.py index b46aa1d..efb05fa 100644 --- a/wobbl_tools/text/tree_view.py +++ b/wobbl_tools/text/tree_view.py @@ -69,6 +69,9 @@ if __name__ == "__main__": if len(sys.argv) == 1: # use first command line argument when set, else use the module path path = module_path + elif sys.argv[1] == "-v": # if -v parameter is set, the program will view the current directory + path = os.getcwd() + else: path = sys.argv[1]