mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
iiab-make-kiwix-lib.py - use configparser
This commit is contained in:
parent
5597848a20
commit
b9ea8dc181
1 changed files with 4 additions and 2 deletions
|
@ -19,7 +19,8 @@ import yaml
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import shlex
|
import shlex
|
||||||
import ConfigParser
|
#import ConfigParser
|
||||||
|
import configparser
|
||||||
import xml.etree.ElementTree as ET
|
import xml.etree.ElementTree as ET
|
||||||
import argparse
|
import argparse
|
||||||
import fnmatch
|
import fnmatch
|
||||||
|
@ -204,7 +205,8 @@ def init():
|
||||||
global kiwix_library_xml
|
global kiwix_library_xml
|
||||||
global kiwix_manage
|
global kiwix_manage
|
||||||
|
|
||||||
config = ConfigParser.SafeConfigParser()
|
# config = ConfigParser.SafeConfigParser()
|
||||||
|
config = configparser.ConfigParser()
|
||||||
config.read(iiab_ini_file)
|
config.read(iiab_ini_file)
|
||||||
iiab_base_path = config.get('location','iiab_base')
|
iiab_base_path = config.get('location','iiab_base')
|
||||||
zim_path = config.get('kiwix','iiab_zim_path')
|
zim_path = config.get('kiwix','iiab_zim_path')
|
||||||
|
|
Loading…
Reference in a new issue