Project

General

Profile

Locate global config directory on Windows » History » Version 7

Anchi Cheng, 09/06/2015 12:57 AM

1 3 Anchi Cheng
h2. Locate global configuration directory following standard on Windows
2 1 Anchi Cheng
3
Saving cfg files in a global location reduces future need for copying old configuration to updated installation.  The location is different for different versions of Windows. To locate the one for your Windows version:
4
5 7 Anchi Cheng
# go to C:\\python27\Lib\site-packages\leginon
6 1 Anchi Cheng
# run configcheck.py
7
8 2 Anchi Cheng
The script gives the three search directories of the cfg files and the loaded file if present.  Note the first search directory that with a name most likely start with *C:\\Programs* and ends with *\myami*.  This is the *global configuration directory* we will use.