Skip to content

Instantly share code, notes, and snippets.

@Ke-
Created June 16, 2016 22:52
Show Gist options
  • Save Ke-/0922e7de9389ac834a5d9e60788e4f5b to your computer and use it in GitHub Desktop.
Save Ke-/0922e7de9389ac834a5d9e60788e4f5b to your computer and use it in GitHub Desktop.
LassoApp reloader
/////////////////////////////////////////////////////////////////////////
//
// App type loader
//
/////////////////////////////////////////////////////////////////////////
! ::init_thread->istype
? define init_thread => thread {
public lassoapps => {
stdoutnl('init: lassoapps')
with path in dir('/' + sys_appsPath)->eachpath
order by #path
do protect => {
#path->removeleading('/')
#path = '/' + #path
handle_error => {
stdoutnl(error_msg)
}
lassoapp_installer->install(#path)
}
}
}
define init => init_thread->lassoapps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment