import os.path def f(): for path in []: break else: image_filename = os.path.join(os.path.dirname("/home/jiba"), "machin") return 1 print f()