mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +03:00
Start rewriting options and config as common.py globals
This commit is contained in:
parent
1d88ba5450
commit
c3be06fb1d
12 changed files with 129 additions and 99 deletions
|
@ -23,12 +23,14 @@ import subprocess
|
|||
from optparse import OptionParser
|
||||
import common
|
||||
|
||||
config = {}
|
||||
config = None
|
||||
options = None
|
||||
|
||||
def main():
|
||||
|
||||
# Read configuration...
|
||||
common.read_config(config)
|
||||
global config, options
|
||||
|
||||
config = common.read_config(options)
|
||||
|
||||
# Parse command line...
|
||||
parser = OptionParser()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue