# Path: vimswitch/Profile.py
# class Profile:
#     def __init__(self, name):
#         self.name = name
# 
#     def getName(self):
#         return self.name
# 
#     def getDirName(self):
#         return self.name.replace('/', '.')
# 
#     def __eq__(self, other):
#         return isinstance(other, Profile) and self.name == other.name
# 
#     def __ne__(self, other):
#         return not self.__eq__(other)
# 
#     def __repr__(self):
#         return "Profile('%s')" % self.name


import os
from .Profile import Profile


class Settings:

    def __init__(self, homePath=''):
        """
        homePath is used as the prefix for all other paths. If homePath is not
        specified it gets set to the user's home directory.
        """
        self.homePath = homePath or os.path.expanduser('~')
        self.configPath = os.path.join(self.homePath, '.vimswitch')
        self.configFilePath = os.path.join(self.configPath, 'vimswitchrc')
        self.cachePath = os.path.join(self.configPath, 'profiles')
        self.downloadsPath = os.path.join(self.configPath, 'downloads')
        self.profileFiles = ['.vimrc', '_vimrc']
        self.profileDirs = ['.vim', '_vim']

# Path: vimswitch/Profile.py
# class Profile:
#     def __init__(self, name):
#         self.name = name
# 
#     def getName(self):
#         return self.name
# 
#     def getDirName(self):
#         return self.name.replace('/', '.')
# 
#     def __eq__(self, other):
#         return isinstance(other, Profile) and self.name == other.name
# 
#     def __ne__(self, other):
#         return not self.__eq__(other)
# 
#     def __repr__(self):
#         return "Profile('%s')" % self.name


# Path: vimswitch/Settings.py
import os
from .Profile import Profile



class Settings:

    def __init__(self, homePath=''):
        """
        homePath is used as the prefix for all other paths. If homePath is not
        specified it gets set to the user's home directory.
        """
        self.homePath = homePath or os.path.expanduser('~')
        self.configPath = os.path.join(self.homePath, '.vimswitch')
        self.configFilePath = os.path.join(self.configPath, 'vimswitchrc')
        self.cachePath = os.path.join(self.configPath, 'profiles')
        self.downloadsPath = os.path.join(self.configPath, 'downloads')
        self.profileFiles = ['.vimrc', '_vimrc']
        self.profileDirs = ['.vim', '_vim']

        self.defaultProfile = Profile('default')