imports.exclude in the user settings file

31 views
Skip to first unread message

Lithium Lilith

unread,
Oct 10, 2023, 1:38:36 AM10/10/23
to scite-interest
Hi,
The Options menu is not overridden in a user settings file loaded on the command line via -import. The value of imports.exclude is overridden: print(props['imports.exclude']).
But if you save the user file in the editor, the Options menu is updated.

Neil Hodgson

unread,
Oct 10, 2023, 5:41:45 AM10/10/23
to scite-interest
lithiumi486 :
The Options menu is not overridden in a user settings file loaded on the command line via -import. The value of imports.exclude is overridden: print(props['imports.exclude']).

Command line arguments are read after the imports.exclude property is first evaluated to restrict imports.

   Neil
Message has been deleted

Lithium Lilith

unread,
Oct 11, 2023, 6:10:10 AM10/11/23
to scite-interest
Okay, but when I put imports.include=asm au3 conf ... in SciTEUser.properties, none of the definitions from the .properties file that I include via -import (command line) are applied, as if this file is not loaded at all . But if you comment out imports.include=... in the SciTEUser.properties file, then everything is fine.

Neil Hodgson

unread,
Oct 11, 2023, 5:16:21 PM10/11/23
to scite-interest
lithi...@gmail.com:
... imports.include=asm au3 conf ... in SciTEUser.properties, none of the definitions from the .properties file that I include via -import (command line) are applied

imports.include is a strict list of the files that may be imported. If your -import file name is not in the list, it won't be imported.
 
Neil

Lithium Lilith

unread,
Oct 12, 2023, 1:46:05 AM10/12/23
to scite-interest
Thanks, it’s easier to use imports.exclude than to specify paths.
Reply all
Reply to author
Forward
0 new messages