mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
Add some dummy configuration to dummypython, and then show it.
This commit is contained in:
parent
d9f4c74537
commit
4516213b0b
2 changed files with 22 additions and 3 deletions
|
@ -24,8 +24,9 @@ from time import gmtime, strftime
|
|||
def calamares_main():
|
||||
os.system( "/bin/sh -c \"touch ~/calamares-dummypython\"" )
|
||||
accumulator = strftime( "%Y-%m-%d %H:%M:%S", gmtime() ) + "\n"
|
||||
accumulator += "Calamares version: " + libcalamares.VERSION_SHORT + "\n"
|
||||
accumulator += "This job's name: " + libcalamares.job.prettyName() + "\n"
|
||||
accumulator += "This job's path: " + libcalamares.job.workingPath() + "\n"
|
||||
accumulator += "Calamares version: " + libcalamares.shortVersion + "\n"
|
||||
accumulator += "This job's name: " + libcalamares.job.prettyName + "\n"
|
||||
accumulator += "This job's path: " + libcalamares.job.workingPath + "\n"
|
||||
accumulator += str( libcalamares.job.configuration )
|
||||
return accumulator
|
||||
|
||||
|
|
|
@ -6,3 +6,21 @@ name: "dummypython"
|
|||
interface: "python"
|
||||
requires: []
|
||||
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…
Add table
Reference in a new issue