What I would like to do is create a variable homedir that is set to the home folder script. How do I do this? Like say the script is located in C:\blah\, I would want homedir to be assigned to that.
homedir = (current directory)
pdfList = []
def getfiles():
directory = os.listdir(homedir)
for file in directory:
if "pdf" in file:
pdfList.append(file)