rendered paste body def __darwin(self):
"""Darwin platform specific settings."""
self.user = os.getenv("USER")
if os.getuid() == 0:
self.user = "root"
self.application_dir = os.path.split(os.path.abspath(sys.argv[0]))[0]
self.config_dir = os.path.expanduser(os.path.join(os.path.sep, "etc", "petunial"))
self.data_dir = os.path.join(sys.prefix, "share", "petunial")
self.locales_dir = os.path.join(sys.prefix, "share", "locale")
if os.path.isdir(os.path.join(self.application_dir, "locale")):
self.locales_dir = os.path.join(self.application_dir, "locale")
self.data_dir = self.application_dir
self.syslog_handler = logging.handlers.SysLogHandler(os.path.join(os.path.sep, "var", "run","syslog"))
self.log_dir = os.path.join(os.path.sep, "var", "log")
self.log_level = logging.WARNING
self.command_file = "%s %s"