The Sifflet visual functional programming language and aid to understanding recursive functions (http://mypage.iu.edu/~gdweber/software/sifflet/home.html)
#50Windows installer
- added tag p:high(current focus)
- removed tag p:medium
2013 July 15: So far I can make a zip file that can be extracted into a folder in which you can run Sifflet. It mostly works, but the datafiles are mislocated, which will cause Sifflet to crash if you export to either Python or Scheme (because it tries to copy the "library" files for those languages).
2013 July 17
If Sifflet is launched from an extracted archive in an arbitrary location, then an immediate call to
getCurrentDirectory
returns the directory containing sifflet.exe, even if it was launched from a shortcut. This could be useful, since that directory would also contain the datafiles. However, if the user subsequently changed working directory (for example, in saving or opening a file), thengetCurrentDirectory
would return the new working directory. So it can only be "trusted" if it is obtained before the user starts to interact with the program.The file
Paths_sifflet_lib.hs
(which is in lib/dist/build/autogen) defines the default locations of bindir, libdir, datadir, and libexecdir, but these can be overridden by environment variablessifflet_lib_bindir
,sifflet_lib_libdir
,sifflet_lib_datadir
, andsifflet_lib_libexecdir
.So a solution might be: at startup, get the current working directory, and then set the environment variable.
But System.Environment provides no
setEnv
function to complementgetEnv
Better yet would be to track and updated the working directory in Sifflet's state, as also needed for issue #38.
- added tag p:high
- removed tag p:high(current focus)
2013 July 17. Partly fixed in sifflet-devel. When exporting to Python or Scheme, there is a warning message about the missing files. At least it doesn't crash.
Related: #38 working directory
Need to provide source code for LGPL libraries.
Licenses for libraries are now included in sifflet-2.1.0-2-for-windows.zip in sifflet-devel, and source code for the libraries is available through the web site.
- summary changed to "Windows installer"
- description updated