1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/env python3 import sys, os def main(argv): homedir = os.getenv("HOME") stroke_buddydir = homedir + "/.local/stroke_buddy" log_files = os.listdir(stroke_buddydir) print(log_files) return 0 if __name__ == "__main__": sys.exit(main(sys.argv))