For instance, if I run it like the following: $ python about.py ../about-code-tool/testdata/ /cygdrive/z/tmp/t2.csv The output of the about_file is ../about-code-tool/testdata/ which is incorrect.