пятница, 30 сентября 2011 г.

Warzone 2100 automatic music.wpl file refresher

In Linux, all you need is to place your ogg files in .warzone2100/music
and execute script.

Firstly create in that directory file - refresh.py
Code:


#!/usr/bin/python
import os


f=open("music.wpl","w")


dirList=os.listdir(".")
for fname in dirList:
    if fname.find(".ogg")>-1:
        print "Writing ",fname
f.write(fname)
f.write("\n")


f.close()


then make it executable.
Place your ogg's and run this script
???
PROFIT
:D

Комментариев нет:

Отправить комментарий