Windows XP/Vista:
C:\Documents and Settings\<username>\Local Settings\Application Data\Enso\
files:
C:\Documents and Settings\<username>\Local Settings\Application Data\.ensorc
C:\Documents and Settings\<username>\Local Settings\Application Data\.ensocommands
C:\Documents and Settings\<username>\Local Settings\Application Data\Enso\commands\
how to get it:
from win32com.shell import shell, shellcon
os.path.join(shell.SHGetFolderPath(0, shellcon.CSIDL_LOCAL_APPDATA, 0, 0), "Enso")
I suggest creating get_home_folder() or get_enso_folder() somewhere in enso/platform/xxx.
There is also possibility of having heavier platform specific APIs to get important folders, something like:
get_special_folder(constant.ENSO_FOLDER)
get_special_folder(constant.ENSO_LEARNASFOLDER)
get_special_folder(constant.ENSO_COMMANDSFOLDER)
Can we agree on that? I think this is very imnportant issue.
To summarize:
Linux: .local/ share/enso/
$HOME/
files: .local/ share/enso/ .ensorc .local/ share/enso/ .ensocommands .local/ share/enso/ commands/
$HOME/
$HOME/
$HOME/
how to get it: ("~/enso" )
os.expanduser
OSX:
$HOME/enso/
files: enso/.ensorc enso/.ensocomma nds enso/commands/
$HOME/
$HOME/
$HOME/
how to get it: ("~/enso" )
os.expanduser
Windows XP/Vista: <username> \Local Settings\ Application Data\Enso\
C:\Documents and Settings\
files: <username> \Local Settings\ Application Data\.ensorc <username> \Local Settings\ Application Data\.ensocommands <username> \Local Settings\ Application Data\Enso\commands\
C:\Documents and Settings\
C:\Documents and Settings\
C:\Documents and Settings\
how to get it: join(shell. SHGetFolderPath (0, shellcon. CSIDL_LOCAL_ APPDATA, 0, 0), "Enso")
from win32com.shell import shell, shellcon
os.path.
I suggest creating get_home_folder() or get_enso_folder() somewhere in enso/platform/xxx.
There is also possibility of having heavier platform specific APIs to get important folders, something like: folder( constant. ENSO_FOLDER) folder( constant. ENSO_LEARNASFOL DER) folder( constant. ENSO_COMMANDSFO LDER)
get_special_
get_special_
get_special_
etc.