本文整理汇总了Python中profile.Profile.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Profile.__init__方法的具体用法?Python Profile.__init__怎么用?Python Profile.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类profile.Profile
的用法示例。
在下文中一共展示了Profile.__init__方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from profile import Profile [as 别名]
# 或者: from profile.Profile import __init__ [as 别名]
def __init__ (self, prefix = False):
Profile.__init__ (self, prefix)
self.name = 'unix'
self.gcc_flags = [ '-I%{prefix}/include' ]
self.ld_flags = [ '-L%{prefix}/lib' ]
try:
self.gcc_flags.extend (self.gcc_extra_flags)
except:
pass
try:
self.ld_flags.extend (self.ld_extra_flags)
except:
pass
self.env.set ('PATH', ':',
'%{prefix}/bin',
'/usr/bin',
'/bin',
'/usr/local/git/bin')
self.env.set ('C_INCLUDE_PATH', '%{prefix}/include')
self.env.set ('LD_LIBRARY_PATH', '%{prefix}/lib')
self.env.set ('ACLOCAL_FLAGS', '-I%{prefix}/share/aclocal')
self.env.set ('PKG_CONFIG_PATH', ':',
'%{prefix}/lib/pkgconfig',
'%{prefix}/share/pkgconfig')
self.env.set ('XDG_CONFIG_DIRS', '%{prefix}/etc/xdg')
self.env.set ('XDG_DATA_DIRS', '%{prefix}/share')
self.env.set ('XDG_CONFIG_HOME', '$HOME/.config')
示例2: __init__
# 需要导入模块: from profile import Profile [as 别名]
# 或者: from profile.Profile import __init__ [as 别名]
def __init__ (self, prefix = False):
Profile.__init__ (self, prefix)
self.name = 'unix'
self.gcc_flags = ['-I%s/include' % self.staged_prefix]
self.ld_flags = ['-L%s/lib' % self.staged_prefix]
self.env.set ('PATH', ':',
'%{toolchain_root}/bin',
'%{staged_prefix}/bin',
'/usr/bin',
'/bin',
'/usr/local/git/bin')
self.env.set ('C_INCLUDE_PATH', '%{staged_prefix}/include')
#self.env.set ('LD_LIBRARY_PATH', '%{staged_prefix}/lib')
self.env.set ('ACLOCAL_FLAGS', '-I%{staged_prefix}/share/aclocal')
self.env.set ('PKG_CONFIG_PATH', ':',
'%{staged_prefix}/lib/pkgconfig',
'%{staged_prefix}/share/pkgconfig',
'%{toolchain_root}/lib/pkgconfig',
'%{toolchain_root}/share/pkgconfig')
self.env.set ('XDG_CONFIG_DIRS', '%{staged_prefix}/etc/xdg')
self.env.set ('XDG_DATA_DIRS', '%{staged_prefix}/share')
self.env.set ('XDG_CONFIG_HOME', '$HOME/.config')
示例3: __init__
# 需要导入模块: from profile import Profile [as 别名]
# 或者: from profile.Profile import __init__ [as 别名]
def __init__(self, name, CertClass):
Profile.__init__(self, name, CertClass)
self._certs_by_subj.set_filename("users/"+str(name)+"/certs.subj")
self._certs_by_issuer.set_filename("users/"+str(name)+"/certs.issuer")
# overload meaning of FileCertifications here to store user-profile.
self.info = FileCertifications()
self.info.set_filename("users/"+str(name)+"/profile")
示例4: __init__
# 需要导入模块: from profile import Profile [as 别名]
# 或者: from profile.Profile import __init__ [as 别名]
def __init__(self, *args, **kws):
self._lock = Lock()
self._local = threading.local()
self._local.cur = None
Profile.__init__( self, *args, **kws )