filePath = os.path.abspath(directoryName) filePathWithSlash = filePath + "\\" filenameWithPath = os.path.join(filePathWithSlash, filename)