Skip to content
Snippets Groups Projects
Commit 2c7aa0b5 authored by Lukáš Krupčík's avatar Lukáš Krupčík
Browse files

new version modules.py

parent 2ac10b0f
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python ##!/usr/bin/env python
# #
# Copyright (C) 2016 IT4Innovations # Copyright (C) 2016 IT4Innovations
# Lumir Jasiok
# lumir.jasiok@vsb.cz
# http://www.it4i.cz
#
#
# #
##
import json import json
import os import os
...@@ -65,11 +61,12 @@ if __name__ == "__main__": ...@@ -65,11 +61,12 @@ if __name__ == "__main__":
#print sorted(subdirs) #print sorted(subdirs)
#subdirs = ['base'] #subdirs = ['base']
# Create module class structure # Create module class structure
print "# List of Available Modules"
for dir in sorted(subdirs): for dir in sorted(subdirs):
class_path = os.path.join(BASE_MODULES_DIR, dir) class_path = os.path.join(BASE_MODULES_DIR, dir)
available_software = software_list(class_path) available_software = software_list(class_path)
#print available_software #print available_software
print "\n#%s\n" % dir.title() print "\n###%s\n" % dir.title()
print "|Module|Description|Available versions|" print "|Module|Description|Available versions|"
print "|--|--|--|" print "|--|--|--|"
HTML_SOURCE_DATA[dir] = {} HTML_SOURCE_DATA[dir] = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment