From 99e0ff0726ac96734d9d18c7e799101b6b1a53fa Mon Sep 17 00:00:00 2001 From: EKNr1 Date: Fri, 10 Jan 2025 19:12:03 +0100 Subject: [PATCH] Corrected comments. --- wobbl_tools/text/tree_view.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wobbl_tools/text/tree_view.py b/wobbl_tools/text/tree_view.py index efb05fa..8609bff 100644 --- a/wobbl_tools/text/tree_view.py +++ b/wobbl_tools/text/tree_view.py @@ -66,13 +66,13 @@ def tree_view( if __name__ == "__main__": - if len(sys.argv) == 1: # use first command line argument when set, else use the module path + if len(sys.argv) == 1: # use module path when no parameters were given path = module_path elif sys.argv[1] == "-v": # if -v parameter is set, the program will view the current directory path = os.getcwd() - else: + else: # else view the directory specified by parameter path = sys.argv[1] print(tree_view(path, exclude_names=["__pycache__"]))