def ImportProject(projDir, projUrl):
    """ Imports project directory to Subversion repository """
    try:
        KillSvnDirs(projDir) # kills old subversion directories if present
        head, tail = os.path.split(projDir)
        os.chdir(head) 
        command = r'%s import -m auto-import %s %s' % (SVN_EXE, tail, projUrl) #doesn't like dbl-quotes around -m arg
        #command = r'%s import %s %s' % (SVN_EXE, tail, projUrl)
        Execute(command)
        print 'Finished -- ImportProject'
    except Exception, e:
        print 'Failed -- ImportProject', e
        raise
 Imports project directory to Subversion repository 
recipes/Python/574453_Automate_creatinew/recipe-574453.py