flush stdout when print path num