Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

    开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

    如果您登录系统碰到问题,请在微信公众号留言:

    给OpenERP的翻译文件减减肥

    Python 开发
    3
    5
    9076
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wjfonhand
      wjfonhand last edited by

      <br /><br />#coding=utf-8<br /><br />import os<br /><br />def remove_pos(dir):<br />&nbsp; &nbsp; for root, dirs, files in os.walk(dir,topdown=False):<br />&nbsp; &nbsp; &nbsp; &nbsp; for name in files:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if os.path.splitext(name)[1] == &#039;.po&#039; and name[0:2] != &#039;zh&#039;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; os.remove(os.path.join(root,name))<br /><br />if __name__ == &quot;__main__&quot;:<br />&nbsp; &nbsp; remove_pos(&quot;c:\openerp_osbzr&quot;)<br /><br /><br />
      

      GoodERP -- Odoo China fork

      1 Reply Last reply Reply Quote 0
      • mrshelly
        mrshelly last edited by

        现在硬盘多便宜啊.....

        1 Reply Last reply Reply Quote 0
        • Joshua
          Joshua 管理员 last edited by

          po放着不碍事..

          【上海先安科技】(joshua AT openerp.cn),欢迎关注公众号:openerp_cn

          1 Reply Last reply Reply Quote 0
          • wjfonhand
            wjfonhand last edited by

            绿色版的openerp目录
            减肥前232M
            减肥后87.1M

            问题不在于硬盘空间,而是大量文件无论是复制、解压还是版本库管理负担都比较大。

            GoodERP -- Odoo China fork

            1 Reply Last reply Reply Quote 0
            • First post
              Last post