Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: security annoyance

From: al:bri:xtra at: 21-Jan-2002 9:33

Patrick wrote:
> As I intend to use the include directory from various locations, it is not
the best solution.
> Any idea ?
If you're going to use the scripts in the include directory from various locations, why not 'do all the scripts in the include directory as Rebol starts up? For example, in my %User.r, I've got: do %../Values/Values.r which is the script that 'do-es all my common scripts. Because the 'do line is in %User.r, it bypasses Rebol's security restriction. I've appended %Values.r after my .sig. Andrew Martin ICQ: 26227169 -><- Values: make object! [ Problem: none Files: make block! 100 use [Do-File Patches] [ Do-File: function [File [file!]] [Loaded Needs] [ File: clean-path File if not found? find Files File [ Loaded: load/header File Needs: Loaded/1/Needs if all [ found? Needs block? Needs ] [ foreach Need Needs [ if file? Need [ Do-File Need ] ] ] Problem: File do File ; Deliberately done to get Rebol to print Script: etc from 'do. append Files File Problem: none ] ] append Files clean-path Rebol/Script/Header/File Patches: %Patches.r if exists? Patches [ Do-File Patches ] foreach File read %. [ Do-File File ] ] ]