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