RSS/Atom feed Twitter
Site is read-only, email is disabled

dependant scm files and script-fu load

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

dependant scm files and script-fu load Alan Campbell 10 Sep 13:43
  dependant scm files and script-fu load Rob Antonishen 10 Sep 15:41
Alan Campbell
2010-09-10 13:43:19 UTC (over 14 years ago)

dependant scm files and script-fu load

I have several scm files; they all live in a single folder (which is on GIMP search path for scripts).

I have common code for three of the scripts which all goes into a fourth. A fifth has defines which user of scripts may wsh to alter; the fourth script depends on it.

If I just leave nature -- or GIMP to take it's course, the scripts don't load when scripts come up, unless I arrange for the most- depended on script (the fifth) to have a name prceeding all others in alphabetical sort order, the fourth the next in order.

If I refresh scripts, name order doesn't seem to matter, all works fine.

Okay, so to avoid problem I'd like to explicitly load one file from another. But (load ) seems to require an absolute path. I don't want to specify absolute path because other users of scripts (which are mean to be distributed) could put scripts anywhere.

Is there a way to refer to something like "folder in which curent script resides" or "user GIMP configuration folder" (e.g. on my machine Docs and Settings\UserName\.gimp-2.6)?

Yrs,

Alan

The more you complain, the longer God lets you live.

===================== +++++ =====================

Rob Antonishen
2010-09-10 15:41:24 UTC (over 14 years ago)

dependant scm files and script-fu load

Is there a way to refer to something like "folder in which curent script resides" or "user GIMP configuration folder" (e.g. on my machine Docs and Settings\UserName\.gimp-2.6)?

gimp-directory gets you to there.

Check out this page: http://www.ve3syb.ca/wiki/doku.php?id=software:sf:writing

-Rob A>