The value of applicationDirectorySuffix may also be a function of no arguments, in which case its value is used as the path. The initial value of applicationDirectorySuffix is a function whose value depends on the operating system and its conventions.
i1 : applicationDirectorySuffix() o1 = .Macaulay2/ |
i2 : applicationDirectory() o2 = /home/dan/.Macaulay2/ |
i3 : applicationDirectorySuffix = "local/Mac2" warning: 'applicationDirectorySuffix' redefined /mike-raid/home/dan/src/M2/overnight/M2/Macaulay2/d/startup.m2.in:252:6-252:32: here is the first use of 'applicationDirectorySuffix' : debug with expression debug 3954 or with command line option --debug 3954 o3 = local/Mac2 |
i4 : applicationDirectory() o4 = /home/dan/local/Mac2 |
../../../../../../../Macaulay2/d/startup.m2.in:252:38-254:41: --source code: applicationDirectorySuffix = () -> ( if version#"operating system" === "Darwin" then "Library/Application Support/Macaulay2/" else ".Macaulay2/" );