borgbackup/borg/platform.py
Thomas Waldmann b5404209bb add swidth call to determine string width on terminal
on posix platforms, this is a small wrapper around wcswidth(3).
2016-05-18 17:40:04 +02:00

10 lines
543 B
Python

import sys
from .platform_base import acl_get, acl_set, SyncFile, sync_dir, set_flags, get_flags, swidth, API_VERSION
if sys.platform.startswith('linux'): # pragma: linux only
from .platform_linux import acl_get, acl_set, SyncFile, set_flags, get_flags, swidth, API_VERSION
elif sys.platform.startswith('freebsd'): # pragma: freebsd only
from .platform_freebsd import acl_get, acl_set, swidth, API_VERSION
elif sys.platform == 'darwin': # pragma: darwin only
from .platform_darwin import acl_get, acl_set, swidth, API_VERSION