mirror of
https://github.com/rosalinux/image-builder.git
synced 2025-02-23 18:32:51 +00:00
10 lines
316 B
Python
10 lines
316 B
Python
#!/usr/bin/env python
|
|
|
|
def load_config(config_path):
|
|
config = {}
|
|
with open(config_path, "r") as f:
|
|
for line in f:
|
|
if "=" in line and not line.strip().startswith("#"):
|
|
key, value = line.strip().split("=", 1)
|
|
config[key] = value.strip('"')
|
|
return config
|