OESF | ELSI (coming soon) | Community Links (coming soon) | LinuxPDA | Ibiblio


Welcome Guest ( Log In | Register )

> Python Question
post Aug 9 2005, 11:35 AM
Post #1

Group: Members
Posts: 1,213
Joined: 9-June 05
From: Gobi Desert, Mongolia
Member No.: 7,306

I need to search a line of text out in a file and replace it, so far the code examples on the net have produced empty files.

Basically the file is a *.conf file, now the structure of the file looks alot like a win *.ini file and in visual basic there is a function to access the sections (the headers in brackets) and each entry (the name with '='). Now the question, does python support or rather have a built in function for handleing that? If yes what is it? If no then how do I do a search and replace? I only have a partial string and want to replace the whole line until the eof(its the last line in the file)

and second question how is the Launcher.conf 'reloaded' after a change, does it get checked every so often?

or even better, what command line will change my wallpaper? Obviously you have the direction I am looking in so far.
Go to the top of the page
+Quote Post
Start new topic
post Aug 16 2005, 02:33 AM
Post #2

Group: Members
Posts: 385
Joined: 3-December 03
Member No.: 1,038

You can take a look at


Maybe the QPE/System restart() would do the trick for you.
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 23rd April 2017 - 11:31 PM