def make_dev_path(dev, partition=None, base='/dev'):
 path = os.path.join(base, dev)
 if partition:
  path += str(partition)
 return path

def make_dev_path ( dev , partition = None , base = '/dev' ) : path = os . path . join ( base , dev ) if partition : path += str ( partition ) return path
return a path to a particular device .