Tarik Billa
Use os.path.dirname(filename).
os.path.dirname(filename)
Comment
Save my name, email, and website in this browser for the next time I comment.