• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python posix.generate函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中posix.generate函数的典型用法代码示例。如果您正苦于以下问题:Python generate函数的具体用法?Python generate怎么用?Python generate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了generate函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: generate

def generate(env):
    posix.generate(env)
    env['SHLIBSUFFIX'] = '.dylib'
    # put macports paths at front to override Apple's versions, fink path is after
    # For now let people who want Macports or Fink tools specify it!
    # env['ENV']['PATH'] = '/opt/local/bin:/opt/local/sbin:' + env['ENV']['PATH'] + ':/sw/bin'
    
    # Store extra system paths in env['ENV']['PATHOSX']
    
    filelist = ['/etc/paths',]
    # make sure this works on Macs with Tiger or earlier
    try:
        dirlist = os.listdir('/etc/paths.d')
    except:
        dirlist = []

    for file in dirlist:
        filelist.append('/etc/paths.d/'+file)

    for file in filelist:
        if os.path.isfile(file):
            f = open(file, 'r')
            lines = f.readlines()
            for line in lines:
                if line:
                    env.AppendENVPath('PATHOSX', line.strip('\n'))
            f.close()
开发者ID:Andrey-VI,项目名称:mapnik,代码行数:27,代码来源:darwin.py


示例2: generate

def generate(env):
    posix.generate(env)
    # Based on sunSparc 8:32bit
    # ARG_MAX=1048320 - 3000 for environment expansion
    env['MAXLINELENGTH']  = 1045320
    env['PKGINFO'] = 'pkginfo'
    env['PKGCHK'] = '/usr/sbin/pkgchk'
    env['ENV']['PATH'] = env['ENV']['PATH'] + ':/opt/SUNWspro/bin:/usr/ccs/bin'
开发者ID:Distrotech,项目名称:scons,代码行数:8,代码来源:sunos.py


示例3: generate

def generate(env):
    posix.generate(env)
    # Based on sunSparc 8:32bit
    # ARG_MAX=1048320 - 3000 for environment expansion
    env["MAXLINELENGTH"] = 1045320
    env["PKGINFO"] = "pkginfo"
    env["PKGCHK"] = "/usr/sbin/pkgchk"
    env["ENV"]["PATH"] = env["ENV"]["PATH"] + ":/usr/ccs/bin"
开发者ID:kanbang,项目名称:Colt,代码行数:8,代码来源:sunos.py


示例4: generate

def generate(env):
    posix.generate(env)

    env['PROGPREFIX']  = ''
    env['PROGSUFFIX']  = '.exe'
    env['SHLIBPREFIX'] = ''
    env['SHLIBSUFFIX'] = '.dll'
    env['LIBPREFIXES'] = [ '$LIBPREFIX', '$SHLIBPREFIX' ]
    env['LIBSUFFIXES'] = [ '$LIBSUFFIX', '$SHLIBSUFFIX' ]
    env['TEMPFILE']    = win32.TempFileMunge
开发者ID:scanlime,项目名称:picogui,代码行数:10,代码来源:cygwin.py


示例5: generate

def generate(env):
    posix.generate(env)

    env['PROGPREFIX']  = ''
    env['PROGSUFFIX']  = '.exe'
    env['SHLIBPREFIX'] = ''
    env['SHLIBSUFFIX'] = '.dll'
    env['LIBPREFIXES'] = [ '$LIBPREFIX', '$SHLIBPREFIX', '$IMPLIBPREFIX' ]
    env['LIBSUFFIXES'] = [ '$LIBSUFFIX', '$SHLIBSUFFIX', '$IMPLIBSUFFIX' ]
    env['TEMPFILE']    = TempFileMunge
    env['TEMPFILEPREFIX'] = '@'
    env['MAXLINELENGTH']  = 2048
开发者ID:Distrotech,项目名称:scons,代码行数:12,代码来源:cygwin.py


示例6: generate

def generate(env):
    posix.generate(env)

    env["PROGPREFIX"] = ""
    env["PROGSUFFIX"] = ".exe"
    env["SHLIBPREFIX"] = ""
    env["SHLIBSUFFIX"] = ".dll"
    env["LIBPREFIXES"] = ["$LIBPREFIX", "$SHLIBPREFIX"]
    env["LIBSUFFIXES"] = ["$LIBSUFFIX", "$SHLIBSUFFIX"]
    env["TEMPFILE"] = TempFileMunge
    env["TEMPFILEPREFIX"] = "@"
    env["MAXLINELENGTH"] = 2048
开发者ID:billrobertson42,项目名称:therubyracer,代码行数:12,代码来源:cygwin.py


示例7: generate

def generate(env):
    posix.generate(env)

    # /bin/gcc doesn't work on Cygwin because gcc attempts to
    # find libexec as /bin/../libexec. So prefer /usr/bin instead.
    env['ENV']['PATH']    = '/usr/local/bin:/opt/bin:/usr/bin:/bin'
    env['PROGPREFIX']  = ''
    env['PROGSUFFIX']  = '.exe'
    env['SHLIBPREFIX'] = ''
    env['SHLIBSUFFIX'] = '.dll'
    env['LIBPREFIXES'] = [ '$LIBPREFIX', '$SHLIBPREFIX' ]
    env['LIBSUFFIXES'] = [ '$LIBSUFFIX', '$SHLIBSUFFIX' ]
    env['TEMPFILE']    = TempFileMunge
    env['TEMPFILEPREFIX'] = '@'
    env['MAXLINELENGTH']  = 2048
开发者ID:GymWenFLL,项目名称:tpp_libs,代码行数:15,代码来源:cygwin.py


示例8: generate

def generate(env):
    posix.generate(env)
开发者ID:rdadolf,项目名称:msms,代码行数:2,代码来源:irix.py


示例9: generate

def generate(env):
    posix.generate(env)
    #Based on HP-UX11i: ARG_MAX=2048000 - 3000 for environment expansion
    env['MAXLINELENGTH']  = 2045000
开发者ID:Acpharis,项目名称:protein_prep,代码行数:4,代码来源:hpux.py


示例10: generate

def generate(env):
    posix.generate(env)
    # Based on AIX 5.2: ARG_MAX=24576 - 3000 for environment expansion
    env["MAXLINELENGTH"] = 21576
开发者ID:bleepbloop,项目名称:Pivy,代码行数:4,代码来源:aix.py


示例11: generate

def generate(env):
    posix.generate(env)
    env['SHLIBSUFFIX'] = '.dylib'
    env['ENV']['PATH'] = env['ENV']['PATH'] + ':/sw/bin'
开发者ID:acmorrow,项目名称:scons-multi,代码行数:4,代码来源:darwin.py


示例12: generate

def generate(env):
    posix.generate(env)
    #Based on sunSparc 8:32bit   ARG_MAX=1048320 - 3000 for environment expansion
    env['MAXLINELENGTH']  = 1045320
开发者ID:puring0815,项目名称:OpenKore,代码行数:4,代码来源:sunos.py


示例13: generate

def generate(env):
    posix.generate(env)
    env['SHLIBSUFFIX'] = '.dylib'
开发者ID:puring0815,项目名称:OpenKore,代码行数:3,代码来源:darwin.py



注:本文中的posix.generate函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python posix.listdir函数代码示例发布时间:2022-05-25
下一篇:
Python posix.fdopen函数代码示例发布时间:2022-05-25
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap