You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
98 lines
3.1 KiB
Python
98 lines
3.1 KiB
Python
4 months ago
|
import os
|
||
|
import json
|
||
|
from info import __version__
|
||
|
import copy
|
||
|
import transport
|
||
|
|
||
|
"""
|
||
|
This class manages data from the registry and allows (read only)
|
||
|
@TODO: add property to the DATA attribute
|
||
|
"""
|
||
|
|
||
|
REGISTRY_PATH=os.sep.join([os.environ['HOME'],'.data-transport'])
|
||
|
REGISTRY_FILE= 'transport-registry.json'
|
||
|
|
||
|
DATA = {}
|
||
|
|
||
|
def isloaded ():
|
||
|
return DATA not in [{},None]
|
||
4 months ago
|
f.close()
|
||
|
else:
|