Loading all scripts in a directory

24 views
Skip to first unread message

Paul Bowman

unread,
Apr 12, 2015, 1:59:25 PM4/12/15
to scri...@googlegroups.com
Hi

Is there a way to load all scripts in a directory?

Something like #load "./scripts/*" ?

Thanks

Paul

Glenn Block

unread,
Apr 12, 2015, 2:02:24 PM4/12/15
to Paul Bowman, scri...@googlegroups.com
Not currently. The way I handle this is I generate a load script that has just a series of #load's based on scanning the file system. You could plug in a custom line processor to do this though.

Glenn Block

unread,
Apr 12, 2015, 2:03:41 PM4/12/15
to Paul Bowman, scri...@googlegroups.com
Basically you would author a #loadfolder line processor that would then be plugged in via a module.

Paul Bowman

unread,
Apr 13, 2015, 12:49:35 PM4/13/15
to scri...@googlegroups.com
Any examples of implementing a line processor available?

Filip W

unread,
Apr 13, 2015, 12:51:30 PM4/13/15
to Paul Bowman, scri...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages