os.getcwd()
os is a python library that doesn't normally need to be installed and getcwd is a function (a heading that holds code only to be run when called) for eg.
def count():{x =0; while x < 10:{x+=1;}} this will not run unless i say count(), i could also add a variable like count_to = int(input("enter num")) then def count(y):{x =0; while x < y:{x+=1;}} then count(count_to). its basically like count wants the argument y in other words count(y=count_to). warning my code uses { in place of blocks and ; in place of endings.
the function getcwd() returns a string and needs no arguments. it returns the directory the application is being run in which may be different from where its placed. for instances if i add my .py file to a $path and open termianl then cd location and my file is in idk maybe bin then cwd()-> location. meaning if you run my direxc from terminal and you ran it from root, every file its programmed to try extract it will try extract potentially causing issues.
Files
Get direxc
direxc
Extracts every archive in directory(can be configured)
Status | In development |
Category | Tool |
Author | Terafri |
Leave a comment
Log in with itch.io to leave a comment.