I think this was originally my intention but seems I got distracted about the behavior when running from sources. I keep a variable this(appPath) which means:
# 'appPath' points to folder which contains:
# Coccinella.tcl if run from sources
# Coccinella*.exe on Windows
# Coccinella*.bin on Unix
# Coccinella*.app on Mac OS X
and when running from sources I have to get one directory level up, but otherwise this(appPath) points exactly to the folder where to put the prefs folder. Untested!
I think this was originally my intention but seems I got distracted about the behavior when running from sources. I keep a variable this(appPath) which means:
# 'appPath' points to folder which contains:
# Coccinella.tcl if run from sources
# Coccinella*.exe on Windows
# Coccinella*.bin on Unix
# Coccinella*.app on Mac OS X
and when running from sources I have to get one directory level up, but otherwise this(appPath) points exactly to the folder where to put the prefs folder. Untested!