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