Corrected comments.
This commit is contained in:
parent
42f2a5f24b
commit
99e0ff0726
1 changed files with 2 additions and 2 deletions
|
@ -66,13 +66,13 @@ def tree_view(
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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
|
path = module_path
|
||||||
|
|
||||||
elif sys.argv[1] == "-v": # if -v parameter is set, the program will view the current directory
|
elif sys.argv[1] == "-v": # if -v parameter is set, the program will view the current directory
|
||||||
path = os.getcwd()
|
path = os.getcwd()
|
||||||
|
|
||||||
else:
|
else: # else view the directory specified by parameter
|
||||||
path = sys.argv[1]
|
path = sys.argv[1]
|
||||||
|
|
||||||
print(tree_view(path, exclude_names=["__pycache__"]))
|
print(tree_view(path, exclude_names=["__pycache__"]))
|
||||||
|
|
Loading…
Add table
Reference in a new issue