Chinaunix首页 | 论坛 | 博客
  • 博客访问: 145093
  • 博文数量: 44
  • 博客积分: 2085
  • 博客等级: 大尉
  • 技术积分: 455
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-31 11:03
文章分类

全部博文(44)

文章存档

2013年(3)

2011年(8)

2010年(11)

2009年(22)

我的朋友

分类: Python/Ruby

2010-05-14 16:24:08

1.def post_installation(self):
        script_list = []
        sfile       = os.listdir(g_script_dir)
        for file in sfile:
            if None != re.search(r'_post-install.[a-z][a-z]\Z', file):
                script_list.append(file)
        script_list.sort()
        for item in script_list:
            if 0 != os.system('sh ' + g_script_dir + item):
                sys.exit(OS_SYSTEM__EC)
阅读(734) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~