platform.py 474 B

123456789101112131415161718
  1. import os
  2. platform = os.uname()[0]
  3. if platform == 'Linux':
  4. from attic.platform_linux import acl_get, acl_set, API_VERSION
  5. elif platform == 'FreeBSD':
  6. from attic.platform_freebsd import acl_get, acl_set, API_VERSION
  7. elif platform == 'Darwin':
  8. from attic.platform_darwin import acl_get, acl_set, API_VERSION
  9. else:
  10. API_VERSION = 1
  11. def acl_get(path, item, numeric_owner=False):
  12. pass
  13. def acl_set(path, item, numeric_owner=False):
  14. pass