I'm afraid on my interpreter, this works. >>> if os.path.getsize("C:\\Documents and Settings\\Joey\\Desktop\\file.txt") <= 1000: >>> print "<= 1000." <= 1000. No problems there, as you can see.