Project

General

Profile

Configure leginoncfg Shared » History » Version 2

Anchi Cheng, 05/22/2010 09:11 PM

1 1 Anchi Cheng
h1. Configure leginon.cfg
2
3 2 Anchi Cheng
h2. The order in which Leginon/Appion looks for leginon.cfg
4
5
# individual user home directory
6
# $PYTHONSITEPKG/leginon/config
7
8
h2. configuration file template
9
10 1 Anchi Cheng
A skeleton (default) configuration file is available:
11
<pre>
12
$PYTHONSITEPKG/leginon/config/default.cfg
13
</pre>
14
where $PYTHONSITEPKG is your python site-packages directory
15
16 2 Anchi Cheng
h2. Create a global leginon.cfg
17 1 Anchi Cheng
18
Copy default.cfg to leginon.cfg.
19
<pre>
20
sudo cp -v $PYTHONSITEPKG/leginon/config/default.cfg $PYTHONSITEPKG/leginon/config/leginon.cfg
21
</pre>
22
23
Edit the newly created file and add a directory for images. Make sure you have permission to save files at this location.
24
<pre>
25
[Images]
26
path: your_storage_disk_path/leginon
27
</pre>