Add some dummy configuration to dummypython, and then show it.
This commit is contained in:
parent
d9f4c74537
commit
4516213b0b
@ -24,8 +24,9 @@ from time import gmtime, strftime
|
|||||||
def calamares_main():
|
def calamares_main():
|
||||||
os.system( "/bin/sh -c \"touch ~/calamares-dummypython\"" )
|
os.system( "/bin/sh -c \"touch ~/calamares-dummypython\"" )
|
||||||
accumulator = strftime( "%Y-%m-%d %H:%M:%S", gmtime() ) + "\n"
|
accumulator = strftime( "%Y-%m-%d %H:%M:%S", gmtime() ) + "\n"
|
||||||
accumulator += "Calamares version: " + libcalamares.VERSION_SHORT + "\n"
|
accumulator += "Calamares version: " + libcalamares.shortVersion + "\n"
|
||||||
accumulator += "This job's name: " + libcalamares.job.prettyName() + "\n"
|
accumulator += "This job's name: " + libcalamares.job.prettyName + "\n"
|
||||||
accumulator += "This job's path: " + libcalamares.job.workingPath() + "\n"
|
accumulator += "This job's path: " + libcalamares.job.workingPath + "\n"
|
||||||
|
accumulator += str( libcalamares.job.configuration )
|
||||||
return accumulator
|
return accumulator
|
||||||
|
|
||||||
|
@ -6,3 +6,21 @@ name: "dummypython"
|
|||||||
interface: "python"
|
interface: "python"
|
||||||
requires: []
|
requires: []
|
||||||
script: "main.py" #assumed relative to the current directory
|
script: "main.py" #assumed relative to the current directory
|
||||||
|
configuration:
|
||||||
|
syntax: "YAML map of anything"
|
||||||
|
example:
|
||||||
|
whats_this: "module-specific configuration"
|
||||||
|
from_where: "module.conf"
|
||||||
|
a_list:
|
||||||
|
- "item1"
|
||||||
|
- "item2"
|
||||||
|
- "item3"
|
||||||
|
- "item4"
|
||||||
|
a_list_of_maps:
|
||||||
|
- name: "an Item"
|
||||||
|
contents:
|
||||||
|
- "an element"
|
||||||
|
- "another element"
|
||||||
|
- name: "another item"
|
||||||
|
contents:
|
||||||
|
- "not much"
|
Loading…
Reference in New Issue
Block a user