Support NetBSD

This commit is contained in:
Neil Booth 2013-01-20 16:18:25 +09:00
parent 76cfc43794
commit 9da7bee57c
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ def appdata_dir():
elif platform.system() == "Linux": elif platform.system() == "Linux":
return os.path.join(sys.prefix, "share", "electrum") return os.path.join(sys.prefix, "share", "electrum")
elif (platform.system() == "Darwin" or elif (platform.system() == "Darwin" or
platform.system() == "DragonFly"): platform.system() == "DragonFly" or
platform.system() == "NetBSD"):
return "/Library/Application Support/Electrum" return "/Library/Application Support/Electrum"
else: else:
raise Exception("Unknown system") raise Exception("Unknown system")