>>> import os >>> os.path.isfile("d:Package1package1fibo.py") True >>> os.path.isfile("d:/Package1/package1/fibo.py") True >>> os.path.isfile("d: onexisting.txt")