def _get_pickle_path(cls): if Platform.is_win32(): path = os.path.join(_windows_commondata_path(), 'Datamonitor') elif os.path.isdir(PidFile.get_dir()): path = PidFile.get_dir() else: path = tempfile.gettempdir() return os.path.join(path, cls.__name__ + '.pickle')
def _get_pickle_path(cls): if Platform.is_win32(): path = os.path.join(_windows_commondata_path(), 'Datadog') elif os.path.isdir(PidFile.get_dir()): path = PidFile.get_dir() else: path = tempfile.gettempdir() return os.path.join(path, cls.__name__ + '.pickle')
def _get_dir(cls): if Platform.is_win32(): path = os.path.join(_windows_commondata_path(), 'Datadog') elif os.path.isdir(PidFile.get_dir()): path = PidFile.get_dir() else: path = tempfile.gettempdir() return path
def _get_pickle_path(cls, prefix=""): if Platform.is_win32(): path = os.path.join(_windows_commondata_path(), 'StackState') if not os.path.isdir(path): path = tempfile.gettempdir() elif os.path.isdir(PidFile.get_dir()): path = PidFile.get_dir() else: path = tempfile.gettempdir() return os.path.join(path, prefix + cls.__name__ + '.pickle')
def _get_dir(cls): if Platform.is_win32(): path = os.path.join(_windows_commondata_path(), 'Server Density') if not os.path.isdir(path): path = tempfile.gettempdir() elif os.path.isdir(PidFile.get_dir()): path = PidFile.get_dir() else: path = tempfile.gettempdir() return path