#!/usr/bin/python # -*- coding: UTF-8 -*- import os, sys path = "/tmp/home/222" try: os.makedirs( path, 0755 ); except Exception,err: if (err.args[0] != 17): print err