mirror of
https://github.com/lutris/lutris
synced 2024-11-05 18:10:49 +00:00
fa3639e9f1
Beware strycore, the usage of the config is slightly changed, read the docstring. ;)
28 lines
817 B
Python
28 lines
817 B
Python
from lutris.util.log import logger
|
|
from lutris.config import LutrisConfig
|
|
|
|
if __name__ == "__main__":
|
|
lc = LutrisConfig(runner_slug="wine")
|
|
logger.error("system level config : ")
|
|
print lc.system_level
|
|
print "runner level config : "
|
|
print lc.runner_level
|
|
print "global config"
|
|
print lc.raw_config
|
|
|
|
print ("*****************")
|
|
print ("* testing games *")
|
|
print ("*****************")
|
|
|
|
lc = LutrisConfig(game_slug="wine-Ghostbusters")
|
|
print "system level config : "
|
|
print lc.system_level
|
|
print ("-----------------------")
|
|
print "runner level config : "
|
|
print lc.runner_level
|
|
print ("-----------------------")
|
|
print "game level config :"
|
|
print lc.game_level
|
|
print ("-----------------------")
|
|
print "global config"
|
|
print lc.raw_config
|