Last active
          December 28, 2015 07:55 
        
      - 
      
- 
        Save zenubis/ca9e0c417f85046a14ca to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def MakeDirectory(path): | |
| try: | |
| os.makedirs(path) | |
| except OSError, e: | |
| if e.errno == 17: #already exist | |
| pass | |
| else: | |
| print e | |
| raise e; | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment