Re: [Gimp-user] Searchpath separator



On Fri, 2011-11-18 at 08:37 +0100, Ofnuts wrote:
On 11/18/2011 08:13 AM, paynekj wrote:
Script-fu question:
Is there an equivalent to DIR-SEPARATOR for search paths?
i.e. the return from (gimp-gimprc-query "script-fu-path")
As the path separator is different on Windows and Linux (and who knows what on Mac)

I don't think so. The gimprc file contains:

# This path will be searched for scripts when the Script-Fu plug-in is 
run.
# This is a colon-separated list of folders to search.
#
# (script-fu-path "${gimp_dir}/scripts:${gimp_data_dir}/scripts")

So this means that Gimp will use a colon on all platforms. That makes 
sense, since this is a Gimp-only setting.

No, this means that you are looking at the file on a UNIX platform.

I have added SEARCHPATH-SEPARATOR as constant to script-fu now.

Regards,
--mitch





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]