![]() |
How to packaging my script?
My python code is at:
/usr/lib/hildon-desktop Location of my shortcut: /usr/share/applications/hildon-status-menu/ How do i edit a file as root inside python code? The file I want to change is class as "root" rw-r--r-- ========== As above I'm writing a small plugin and wanted to know how to do the packaging. Can someone link me to the handy tutorial? |
Re: [URGEN] How to edit a file as ROOT in python Code?
Can anyone teach me?
|
Re: [URGEN] How to edit a file as ROOT in python Code?
Anyone know how to change the file permission for temporary via python?
|
Re: [URGEN] How to change file permission in python Code?
What is the equilvalent of Python to this Xterminal command?
root chmod -R 666 path/to/file? |
Re: [URGEN] How to change file permission in python Code?
Quote:
First of all, to change permissions on file owned by root, your code needs to be root. Second, the methods you are looking for are os.chown() (for changing owner, if you need to) and os.chmod() (for changing permissions). The library reference is your friend: http://docs.python.org/library/os.html So, to change the permission: Code:
import os |
Re: [URGEN] How to change file permission in python Code?
Quote:
Code:
import os # if not already done |
Re: [URGEN] How to change file permission in python Code?
Quote:
By the way how do i be as root on my python script? |
Re: [URGEN] How to change file permission in python Code?
Quote:
|
Re: [URGEN] How to change file permission in python Code?
IT WORKS!!! o.O A FLUKE!!
|
Re: [URGEN] How to change file permission in python Code?
Woohoo SUCESS!!! Now All I need to do is to packaging it. But how?
Any tutorial lol? Is this the one? http://wiki.maemo.org/PyMaemo/Scratc...ackaging_guide |
All times are GMT. The time now is 07:27. |
vBulletin® Version 3.8.8