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() | ||||
|         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 | ||||
|     ''' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user