If a Racket package uses `get-preference` and `(find-system-path 'pref-dir)`
to store some data, is there a way for an application using that package to
override the default preferences file used and the preferences directory
returned by `(find-system-path 'pref-dir)`?

The reason I ask this question is that my map-widget package uses
"(find-system-path 'pref-dir)" to determine the location used to store the
cache for the downloaded map tiles and also uses `get-preference` to 
retrieve
some parameters regarding map rendering.

This approach works fine when a user installs the package and uses it 
directly
within Racket, however, when the package is used as part of an application
(and especially when building a standalone distribution of the 
application), I
would like to be able to override what `(find-system-path 'pref-dir)` 
returns,
as by default it points to a "racket" path (e.g. %APPDATA%/Racket on windows
and ~/.racket on Linux)

Thanks,
Alex.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/0e310fcb-0628-4fd9-8787-3f7bec0a6e66n%40googlegroups.com.

Reply via email to