def post(self, command, output_dir, vars):
        """
        Do some tasks after install
        """
        if command.simulate:
            return
        
        # Find the 'project/' dir in the created paste project
        project_path = join(getcwd(), vars['project'], 'project')
        
        # 1. Mods
        mods = self.get_mods(project_path, vars)
        
        # 2. Create symlinks
        for target, linkfile in self.get_symlinks(project_path, vars, mods):
            print "* Symlink TO:", target, 'INTO:', linkfile
            symlink(target, linkfile)

        # 3. Git first initialization
        call = Caller(vars['project'])
        call('git', 'init', '.')
        call('git', 'add', '.')
        call('git', 'commit', '-m', 'First commit')
def post ( self , command , output_dir , vars ) : if command . simulate : return project_path = join ( getcwd ( ) , vars [ 'project' ] , 'project' ) mods = self . get_mods ( project_path , vars ) for target , linkfile in self . get_symlinks ( project_path , vars , mods ) : print "* Symlink TO:" , target , 'INTO:' , linkfile symlink ( target , linkfile ) call = Caller ( vars [ 'project' ] ) call ( 'git' , 'init' , '.' ) call ( 'git' , 'add' , '.' ) call ( 'git' , 'commit' , '-m' , 'First commit' )
Do some tasks after install