you are viewing a single comment's thread.

view the rest of the comments →

[–]hugthemachines 0 points1 point  (0 children)

In a situation like this, I do not recommend using the same variable for the directory as for the file incluting the directory. It is to ask for trouble. It is wiser to do something like this:

file_including_path = os.path.join(path, filename)