import properties

207 views
Skip to first unread message

Frank

unread,
May 26, 2010, 3:07:53 PM5/26/10
to scite-interest
i want to import a properties-file in userspace (linux, /home/
frank/.scite/tools.properties), but import seems the import-command
only looking in /usr/share and does not understand variables.
I've tried
$(SciteUserHome)/.scite/tools in SciteUser and SciteGlobal
only with full path it will be included.

any Hints?

regards Frank

Martin Panter

unread,
May 26, 2010, 8:12:49 PM5/26/10
to scite-i...@googlegroups.com

I remember running into the same problem, and came to the conclusion
that you either have to reference files from the same directory, or
specify an absolute path name. As a result my SciTEUser.properties has
these lines in it, which I uncomment depending on which computer/OS
the file is on:

#~ # bat
#~ import k:/programs/wscite/vhdl

#~ # Windows:
#~ import c:/marty/opt/wscite/vhdl

#~ import /opt/gnome/share/scite/vhdl # SuSE

#~ # Debian:
#~ import /usr/share/scite/asn1
#~ import /usr/share/scite/vhdl

See these older threads:
http://www.mail-archive.com/scite-i...@lyra.org/msg03289.html
http://groups.google.com/group/scite-interest/t/c84c20ee8fb9b6a2

Philippe Lhoste

unread,
May 27, 2010, 4:12:02 AM5/27/10
to scite-i...@googlegroups.com

Maybe I haven't fully understood your question, but why don't you point SciTE_HOME
environment variable to /home/frank/.scite?
I think that's the point of having such variable.

Maybe having two variables, one for global and another for user properties could be
useful, to avoid copying global variables on each upgrade.
Or just read the global ones where SciTE binary is, if not found in SciTE_HOME, perhaps?

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

Frank

unread,
May 27, 2010, 2:36:05 PM5/27/10
to scite-interest
i don't want to define a global variable...to do this, i have to
change system-config files for registering this env-variable oder run
scite with a script.
scite binary is located at /usr/bin
scite global config is located at /usr/share/scite
my userconfig (currently symlink at /home/frank) is located in /home/
frank/.scite

i've ported scite.userhome-property from scite-ru to gtk, but i cannot
set a user-depended-directory (props.GetExpanded does not expand
~...and also not %...% on windows).

if i know how to replace in a sstring, i can add this...original scite
missed this feature for setting the user-directory in
SciteGlobal.properties ;(

regards frank

Frank

unread,
May 30, 2010, 7:15:42 PM5/30/10
to scite-interest
btw can import be enabled with indentation? so i can do the following:

if PLAT_WIN
import win
if PLAT_GTK
import .scite/gtk

regards Frank

Pascal Guimier

unread,
Feb 18, 2016, 10:14:39 AM2/18/16
to scite-interest
I confirm the problem under debian :

Examples that don't work :
1/
import $(SciteUserHome)/.SciTE/themes/darkmode
2/
Scite.themesHome=$(SciteUserHome)/.SciTE/themes
import $(Scite.themesHome)/darkmode.properties
3/
Scite.themesHome=/home/user/.SciTE/themes
import $(Scite.themesHome)/darkmode.properties
4/
Scite.userHome=/home/user/.SciTE
import $(Scite.userHome)/themes/darkmode.properties

The only example that works :
import /home/user/.SciTE/themes/darkmode

BTW when I try to test variables (Scite.userHome, Scite.themesHome...) they are correctly set

Pascal Guimier

unread,
Feb 18, 2016, 10:18:47 AM2/18/16
to scite-interest
Ah and without ".properties", the examples don't work as well.

Pascal Guimier

unread,
Feb 18, 2016, 10:53:30 AM2/18/16
to scite-interest
Oh everything is here : http://www.mail-archive.com/scite-i...@lyra.org/msg03289.html
 
  "import" does not evaluate properties so you could use an absolute path.
Neil

So just have to use absolute path or learn to code in C :)
Reply all
Reply to author
Forward
0 new messages