Quote:
Originally Posted by Eradicatore
(btw, what's the way to show code on this forum?)
|
Code:
!/usr/bin/python
import time;
import glob;
import random;
import subprocess;
last = "";
while 1 == 1:
file = random.choice(glob.glob('*.png'));
while file == last:
file = random.choice(glob.glob('*.png'));
last = file;
#print file;
subprocess.call(['eips','-f','-g',file]);
time.sleep(60*60); # switch backgrounds every hour
Use the "advanced editor" button - or
wrap with either 'code' or 'php' tags.