change working directory to allow running the script from anywhere

This commit is contained in:
Lincoln-LM 2022-01-08 10:33:17 -07:00
parent 2a91dcbf00
commit e7f85ecebb

View File

@ -8,11 +8,14 @@ import threading
import time
import tkinter as tk
import tkinter.filedialog as fd
import rngtool
from tkinter import ttk
from os import listdir
from os.path import isfile, join
from PIL import Image, ImageTk
os.chdir(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
import rngtool
from xorshift import Xorshift
class Application(tk.Frame):