mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-10-29 09:40:23 +00:00
add support for FreeBSD
This commit is contained in:
@@ -135,6 +135,8 @@ class OSConfig(metaclass = ABCMeta):
|
||||
return LinuxConfig()
|
||||
elif sys.platform == 'darwin':
|
||||
return OSXConfig()
|
||||
elif sys.platform.startswith('freebsd'):
|
||||
return FreeBSDConfig()
|
||||
else:
|
||||
print(f'Non-supported platform: {sys.platform}')
|
||||
return None
|
||||
@@ -145,6 +147,14 @@ class OSConfig(metaclass = ABCMeta):
|
||||
pass
|
||||
|
||||
|
||||
class FreeBSDConfig(OSConfig):
|
||||
''' FreeBSD-related config
|
||||
'''
|
||||
@property
|
||||
def mktxp_user_dir_path(self):
|
||||
return FSHelper.full_path('~/mktxp')
|
||||
|
||||
|
||||
class OSXConfig(OSConfig):
|
||||
''' OSX-related config
|
||||
'''
|
||||
|
||||
1
setup.py
1
setup.py
@@ -69,6 +69,7 @@ setup(
|
||||
'Intended Audience :: System Administrators',
|
||||
'Intended Audience :: Information Technology',
|
||||
'Operating System :: MacOS',
|
||||
'Operating System :: POSIX :: BSD :: FreeBSD',
|
||||
'Operating System :: POSIX :: Linux',
|
||||
'Topic :: System',
|
||||
'Topic :: System :: Systems Administration',
|
||||
|
||||
Reference in New Issue
Block a user