From: Evan Broder Date: Fri, 16 Dec 2011 20:39:32 +0000 (-0800) Subject: Merge pull request #2 from dehnert/master X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-afs.git/commitdiff_plain/d5982bd765cfe8e1e9497dc041674a66589c9eec?hp=dceee3da65a852f480dd7469def7fe3f23b1963f Merge pull request #2 from dehnert/master Various fixes to PyAFS --- diff --git a/afs/_util.pyx b/afs/_util.pyx index f7f167b..932bdf0 100644 --- a/afs/_util.pyx +++ b/afs/_util.pyx @@ -54,6 +54,7 @@ class AFSException(Exception): return "[%s] %s" % (self.errno, self.strerror) def pyafs_error(code): + global _init if not _init: initialize_ACFG_error_table() initialize_KTC_error_table() diff --git a/afs/pts.py b/afs/pts.py index e9f3c98..95c6d4a 100644 --- a/afs/pts.py +++ b/afs/pts.py @@ -215,7 +215,7 @@ class PTEntry(object): groups: For users, this contains a collection class representing the set of groups the user is a member of. - users: For groups, this contains a collection class representing + members: For groups, this contains a collection class representing the members of this group. """ _attrs = ('id', 'name', 'count', 'flags', 'ngroups', 'nusers') diff --git a/setup.py b/setup.py index 1f28113..4c5c317 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ include_dirs = [os.path.join(os.path.dirname(__file__), 'afs'), '%s/include' % root] library_dirs = ['%s/lib' % root, '%s/lib/afs' % root] -if os.path.exists('%s/lib/libafsauthent_pic.a' % root): +if os.path.exists('%s/lib/libafsauthent_pic.a' % root) or os.path.exists('%s/lib64/libafsauthent_pic.a' % root): suffix = '_pic' else: suffix = ''