-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
26 lines (21 loc) · 721 Bytes
/
config.py
File metadata and controls
26 lines (21 loc) · 721 Bytes
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
"""
Config file
Command line arguments overwrites these configs
This object saves the input and output paths
"""
import os
import ntpath
class DefaultConfigs:
def __init__(self, args=None):
self.inputPath = args.inputPath
self.writePath = args.writePath
if not os.path.exists(self.writePath):
os.mkdir(self.writePath)
self.node_schema = os.path.join(
os.getcwd(), "Json Schema", "Nodes_schema.json")
self.ways_schema = os.path.join(
os.getcwd(), "Json Schema", "Ways_schema.json")
self.do_all_validations = True
self.do_eda = True
self.do_schema_validations = True
self.do_intersecting_validation = True