Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import copy
- import random
- import time
- # DEFAULT FOLDER
- wallpapers = '/home/test/Pictures/Wallpapers/'
- def interval_wall(seconds):
- walls_remaining = copy.deepcopy(wallpapers)
- while True:
- time.sleep(seconds)
- rand_wall = random.choice(walls_remaining)
- print(rand_wall)
- walls_remaining.remove(rand_wall)
- if len(walls_remaining) == 0:
- walls_remaining = copy.deepcopy(wallpapers)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement