import sys, os

progname = "RemoteEverywhere"
appid = "com.albertzeyer." + progname
version = "1.0"

userdir = "~/." + progname
platform = None

uname = os.uname()
if "iPhone" in uname[4] or "iPod" in uname[4]:
	userdir = "~/Library/" + progname
	platform = "iOS"	
elif sys.platform == "darwin":
	userdir = "~/Library/Application Support/" + progname
	platform = "MacOSX"
elif sys.platform == "win32":
	from win32com.shell import shellcon, shell
	userdir = shell.SHGetFolderPath(0, shellcon.CSIDL_APPDATA, 0, 0) + "/" + progname
	platform = "Win32"
else:
	print "warning: unknown platform", repr(sys.platform)

userdir = os.path.expanduser(userdir)
try: os.makedirs(userdir)
except: pass
