Print

Print


Hi Paul,

could you please comment on the precedence of the default settings in either 
".coot-preferences/coot-preferences.scm" or its python equivalent. The comments in the file state that the user should feel free to edit the values, but not add/delete entries. This could potentially lead to a situation in which only the .py or .scm file is modified and the defaults are not applied, since they get overwritten by the other defaults file. The same argument could apply to a .coot and .coot.py file. Which one has precedence? Are there any plans to streamline this into one single scripting language? 

Cheers,

	Carsten


-----Original Message-----
From: Mailing list for users of COOT Crystallographic Software
[mailto:[log in to unmask]]On Behalf Of Paul Emsley
Sent: Tuesday, December 16, 2008 7:23 AM
To: [log in to unmask]
Subject: Re: [COOT] drawing symmetry


Dirk Kostrewa wrote:
> Hi Paul,
> 
> I still have a ".coot" file in my home folder for a few coot preferences 
> that I couldn't find in the new 
> ".coot-preferences/coot-preferences.scm". There is a warning that I 
> should not add commands to this file. So is a "~/.coot" still the proper 
> place to add default commands for coot?

Dear Dirk,

Thanks for this prompting.

Coot does not create a ~/.coot file for you, but will read it if it 
exists.  Likewise, ~/.coot.py in which you can write python commands.

~/.coot-preferences is a directory in which all .scm files and .py files 
are executed.  coot-preferences.scm and coot_preferences.py there are 
generated by using the Edit -> Preferences dialog (and thus it 
overwrites older versions - hence the warning).

If you want to create a script that will be read by everyone then put 
those files into a directory define by environment variable 
$COOT_SCHEME_EXTRAS_DIR (for *.scm) or $COOT_PYTHON_EXTRAS_DIR (*.py). 
All *.scm in $COOT_SCHEME_EXTRAS_DIR and *.py files in 
$COOT_PYTHON_EXTRAS_DIR will be executed at start up.

So you have a variety of places. Personally I mostly use ~/.coot.

Paul.