Dotfiles/home/zsh/.img.py

7 lines
181 B
Python
Executable File

#!python
import subprocess
import os, random
a = random.choice(os.listdir("/home/horhik/Pictures/Lain")) #change dir name to whatever
path = "~/Pictures/Lain/" + str(a)
print(path)