Commit ba4accdb authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

moved data to a separate file

parent 31727d3a
{
"meta" : {
"meta-openembedded":[
"git://git.openembedded.org/meta-openembedded",
"master","73854a05565b30a5ca146ac53959c679b27815aa"
],
"meta-xilinx":[
"https://github.com/Xilinx/meta-xilinx.git",
"master","cc146d6c170f100eb2f445047969893faa7a6a55"
],
"meta-swupdate":[
"https://github.com/sbabic/meta-swupdate.git",
"master","f6ab29cfac2b9c6da8881c754e2a316ea43b884d"
],
"meta-ezynq":[
"https://github.com/Elphel/meta-ezynq.git",
"master","",
"#master","00496002f513fc253f5356ee675fdcbb8b4a9962"
],
"meta-elphel393":[
"https://github.com/Elphel/meta-elphel393.git",
"master","",
"#master","a93edc1f91e82e5e613fa38bd800e307c348b9ee"
]
},
"poky":[
"git://git.yoctoproject.org/poky.git",
"master","3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c"
],
"fpga-elphel" : {
"x393" :[
"https://github.com/Elphel/x393.git",
"master","",
"#master","edcdce9550c20726618210149bc1cb4549fd00be"
],
"x393_sata":[
"https://github.com/Elphel/x393_sata.git",
"master",""
],
"x359" :[
"https://github.com/Elphel/x359.git",
"master",""
]
},
"linux-elphel" :[
"https://github.com/Elphel/linux-elphel.git",
"master","",
"#master","cc50d7fa07140e680b09a8add617e62b4ba35aa0"
],
"rootfs-elphel": {
"elphel-apps-imgsrv":[
"https://github.com/Elphel/elphel-apps-imgsrv.git",
"master",""
],
"elphel-apps-php-extension":[
"https://github.com/Elphel/elphel-apps-php-extension.git",
"master",""
],
"elphel-apps-camogm":[
"https://github.com/Elphel/elphel-apps-camogm.git",
"master",""
],
"elphel-udev-rules":[
"https://github.com/Elphel/elphel-udev-rules.git",
"master",""
],
"elphel-web-393":[
"https://github.com/Elphel/elphel-web-393.git",
"master",""
],
"elphel-apps-autocampars":[
"https://github.com/Elphel/elphel-apps-autocampars.git",
"master",""
],
"elphel-apps-autoexposure":[
"https://github.com/Elphel/elphel-apps-autoexposure.git",
"master",""
],
"elphel-apps-histograms":[
"https://github.com/Elphel/elphel-apps-histograms.git",
"master",""
],
"elphel-web-camvc":[
"https://github.com/Elphel/elphel-web-camvc.git",
"master",""
],
"elphel-apps-editconf":[
"https://github.com/Elphel/elphel-apps-editconf.git",
"master",""
],
"elphel-init":[
"https://github.com/Elphel/elphel-init.git",
"master",""
],
"elphel-web-hwmon":[
"https://github.com/Elphel/elphel-web-hwmon.git",
"master",""
],
"elphel-apps-tempmon":[
"https://github.com/Elphel/elphel-apps-tempmon.git",
"master",""
],
"elphel-apps-gps":[
"https://github.com/Elphel/elphel-apps-gps.git",
"master",""
]
},
"tools" : {
"elphel-tools-update":[
"https://github.com/Elphel/elphel-tools-update.git",
"master",""
]
}
}
\ No newline at end of file
...@@ -14,120 +14,10 @@ import subprocess ...@@ -14,120 +14,10 @@ import subprocess
import os import os
import sys import sys
Projects = { import json
'meta' : {
'meta-openembedded':[ with open('projects.json') as data_file:
'git://git.openembedded.org/meta-openembedded', Projects = json.load(data_file)
'master','73854a05565b30a5ca146ac53959c679b27815aa',
],
'meta-xilinx':[
'https://github.com/Xilinx/meta-xilinx.git',
'master','cc146d6c170f100eb2f445047969893faa7a6a55'
],
'meta-swupdate':[
'https://github.com/sbabic/meta-swupdate.git',
'master','f6ab29cfac2b9c6da8881c754e2a316ea43b884d'
],
'meta-ezynq':[
'https://github.com/Elphel/meta-ezynq.git',
'master',''
#'master','00496002f513fc253f5356ee675fdcbb8b4a9962'
],
'meta-elphel393':[
'https://github.com/Elphel/meta-elphel393.git',
'master',''
#'master','a93edc1f91e82e5e613fa38bd800e307c348b9ee'
],
},
'poky':[
'git://git.yoctoproject.org/poky.git',
'master','3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c'
],
'fpga-elphel' : {
'x393' :[
'https://github.com/Elphel/x393.git',
'master',''
#'master','edcdce9550c20726618210149bc1cb4549fd00be'
],
'x393_sata':[
'https://github.com/Elphel/x393_sata.git',
'master',''
],
'x359' :[
'https://github.com/Elphel/x359.git',
'master',''
],
},
'linux-elphel' :[
'https://github.com/Elphel/linux-elphel.git',
'master',''
#'master','cc50d7fa07140e680b09a8add617e62b4ba35aa0'
],
'rootfs-elphel': {
'elphel-apps-imgsrv':[
'https://github.com/Elphel/elphel-apps-imgsrv.git',
'master',''
],
'elphel-apps-php-extension':[
'https://github.com/Elphel/elphel-apps-php-extension.git',
'master',''
],
'elphel-apps-camogm':[
'https://github.com/Elphel/elphel-apps-camogm.git',
'master',''
],
'elphel-udev-rules':[
'https://github.com/Elphel/elphel-udev-rules.git',
'master',''
],
'elphel-web-393':[
'https://github.com/Elphel/elphel-web-393.git',
'master',''
],
'elphel-apps-autocampars':[
'https://github.com/Elphel/elphel-apps-autocampars.git',
'master',''
],
'elphel-apps-autoexposure':[
'https://github.com/Elphel/elphel-apps-autoexposure.git',
'master',''
],
'elphel-apps-histograms':[
'https://github.com/Elphel/elphel-apps-histograms.git',
'master',''
],
'elphel-web-camvc':[
'https://github.com/Elphel/elphel-web-camvc.git',
'master',''
],
'elphel-apps-editconf':[
'https://github.com/Elphel/elphel-apps-editconf.git',
'master',''
],
'elphel-init':[
'https://github.com/Elphel/elphel-init.git',
'master',''
],
'elphel-web-hwmon':[
'https://github.com/Elphel/elphel-web-hwmon.git',
'master',''
],
'elphel-apps-tempmon':[
'https://github.com/Elphel/elphel-apps-tempmon.git',
'master',''
],
'elphel-apps-gps':[
'https://github.com/Elphel/elphel-apps-gps.git',
'master',''
],
},
'tools' : {
'elphel-tools-update':[
'https://github.com/Elphel/elphel-tools-update.git',
'master',''
]
},
}
#http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python #http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
class bcolors: class bcolors:
......
import json
with open('projects.json') as data_file:
Projects = json.load(data_file)
for p,v in Projects.items():
print(" "+p+":")
if isinstance(v,dict):
for k,l in v.items():
print(" "+k+":")
tmpstr = " "
for e in l:
if e=="":
e = "\"\""
tmpstr += " "+e
print(tmpstr)
elif isinstance(v,list):
tmpstr = " "
for e in v:
tmpstr += " "+e
print(tmpstr)
print("\n0 errors\n")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment