1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
Usage:
python cfg-viewer.py <config-file/directory>
Options:
-q : Quiet, prints minimal messages to stdout.
-s : Stops the server from starting. By default it starts after everything has been evaluated.
-r : Search provided directories recursively for .py files.
Examples:
To recursively search the current directory looking for configuration files:
python cfg-viewer.py "." -r
Compute for three configuration files:
python cfg-viewer.py cfgFile1.py confgFile2.py configFile3.py
Default:
The html file will be named index.html, the server python file will be named cfgServer.py both will be stored in the dir where the script is ran from. All other files will be stored under <config-name>-cfghtml/ directory in the same directory.
Problems with browsers
The python script automatically runs a simple local server called cfgServer.py. If you do not need editing capabilities then some browsers do not require this local server. For other browsers (i.e. Chrome), the local server is always needed.
The server file will be in the same place your ran the python script from. It will be entitled cfgServer.py. To run type "python cfgServer.py" in a terminal. It will then provide you with a link where you can view the files.
Some problems may persist especially with browsers other than Chrome, Firefox, Internet Explorer and Safari.
Please get in touch with the browser name and version if you have any troubles with a browser.
Editing
Note: Editing for SequenceTypes(Paths,EndPaths etc.) has been temporarily disabled.
In order to edit data on the html a local server is needed. Please follow the instructions in the "Problems with browsers" section to start a local server.
When saving a python file will be provided with the changes.
Contact
Some bugs still occur with editing and saving, and I am aware of problems with some browsers. If you want to report anything please contact me here:
susie.murphy@cern.ch
|