"""Platform detection utilities"""

import platform
import os

class PlatformUtils:
    """Cross-platform helper functions"""
    
    @staticmethod
    def get_platform():
        """Get current platform name"""
        system = platform.system()
        if system == 'Windows':
            return 'windows'
        elif system == 'Linux':
            return 'linux'
        elif system == 'Darwin':
            return 'macos'
        else:
            return 'other'
    
    @staticmethod
    def is_windows():
        """Check if running on Windows"""
        return platform.system() == 'Windows'
    
    @staticmethod
    def is_linux():
        """Check if running on Linux"""
        return platform.system() == 'Linux'
    
    @staticmethod
    def get_temp_dir():
        """Get platform-appropriate temp directory"""
        if PlatformUtils.is_windows():
            return os.environ.get('TEMP', 'C:\\Temp')
        else:
            return '/tmp'
    
    @staticmethod
    def get_path_separator():
        """Get platform path separator"""
        return os.path.sep
    
    @staticmethod
    def join_paths(*paths):
        """Join paths using platform separator"""
        return os.path.join(*paths)