[DONE] PyRenamer RPM package

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[DONE] PyRenamer RPM package

Postby redstutely » Jan 1st, '14, 22:56

A mass file renamer written in PyGTK. With pyRenamer you can preview and change the name of several files at the same time easily.

Is there an RPM package for PyRenamer that works for Mageia 3 ?

Thanks in advance
Last edited by redstutely on Jan 2nd, '14, 21:07, edited 1 time in total.
redstutely
 
Posts: 2
Joined: Jan 1st, '14, 22:41

Re: PyRenamer RPM package

Postby redstutely » Jan 1st, '14, 23:15

Found krename now, so probably this works just as well.
redstutely
 
Posts: 2
Joined: Jan 1st, '14, 22:41

Re: PyRenamer RPM package

Postby doktor5000 » Jan 2nd, '14, 00:10

Please mark the thread accordingly by editing the topic of the first post and prefix it by [DONE], thanks.

Related note, here's how to file a package request, after searching if it hasn't been reported yet already: https://wiki.mageia.org/en/How_to_repor ... ge_request
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [DONE] PyRenamer RPM package

Postby ghostery » May 13th, '14, 21:44

-- save it as rename.py --

Code: Select all
import os
from sys import argv
for filenames in (Suffix for Suffix in os.listdir('.') if Suffix.endswith(argv[1])):
    new_name, newname_extension = os.path.splitext(filenames)
    os.rename(filenames, new_name + argv[2])


-----
Usage: python(2 or 3) rename.py .png .jpg
Result: 1.png, 2.png, 3.png -> 1.jpg, 2.jpg, 3.jpg
ghostery
 
Posts: 4
Joined: May 13th, '14, 21:39


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron