#!/usr/local/bin/python2 from os.path import join print join('b/d/f/g', '..a')