Implemented viewing of current directory.
This commit is contained in:
parent
f33e751683
commit
42f2a5f24b
1 changed files with 3 additions and 0 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue