|
@@ -8,6 +8,7 @@ import json
|
8
|
8
|
import hashlib
|
9
|
9
|
import os
|
10
|
10
|
from argparse import ArgumentParser, Namespace
|
|
11
|
+from collections import OrderedDict
|
11
|
12
|
|
12
|
13
|
import requests
|
13
|
14
|
|
|
@@ -82,7 +83,7 @@ class Config:
|
82
|
83
|
def _read_options_file(self):
|
83
|
84
|
try:
|
84
|
85
|
with open(self.opt_file, 'r') as f:
|
85
|
|
- self.options = json.load(f)
|
|
86
|
+ self.options = json.load(f, object_pairs_hook=OrderedDict)
|
86
|
87
|
self.options = Namespace(**self.options)
|
87
|
88
|
except FileNotFoundError:
|
88
|
89
|
# Make an empty options namespace
|