It basically works by setting the data directory to $prefix/share/lite-xl where $prefix is determined so that $prefix/bin corresponds to EXEDIR. The packages 'user' and 'user.*' are loaded from the directory '$HOME/.config/lite-xl'.
eg. `_SCALE` => `SCALE` prevents conflict with lua's own _NAME globals