- Timestamp:
- Jul 1, 2010, 5:23:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kde/kreadconfig/kread-ressource.py
r817 r908 56 56 immutaleString = "[$i]" 57 57 try: 58 print i + immutaleString, "=", config.readEntry( i ).toUtf8() 58 value = config.readEntry( i ).toUtf8() 59 print "{0}{1}={2}".format( i, immutaleString, value ) 59 60 except AttributeError: 60 61 # ignore when readEntry does not exist … … 116 117 117 118 # TODO: check valid resource types (otherwise, this application starts a crash report 118 type = args.getOption("type");119 resourcetype = args.getOption("type"); 119 120 120 121 configfilename = args.arg(0) … … 122 123 123 124 #try: 124 config = KConfig(configfilename, KConfig.NoGlobals, type)125 config = KConfig(configfilename, KConfig.NoGlobals, resourcetype) 125 126 #except: 126 127 #print "Unexpected error:", sys.exc_info()[0]
Note:
See TracChangeset
for help on using the changeset viewer.