@eshanized updated the repository!!!

This commit is contained in:
Eshan Roy (Eshanized)
2024-04-19 08:52:29 +05:30
parent fe3a37d49f
commit d0f0b3cc2c

View File

@@ -474,20 +474,6 @@ def install_alacritty(self):
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
) )
def get_desktop(self):
base_dir = os.path.dirname(os.path.realpath(__file__))
desktop = subprocess.run(
["sh", base_dir + "/get_desktop.sh", "-n"],
shell=False,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
)
dsk = desktop.stdout.decode().strip().split("\n")
self.desktop = dsk[-1].strip()
def copytree(self, src, dst, symlinks=False, ignore=None): # noqa def copytree(self, src, dst, symlinks=False, ignore=None): # noqa
if not os.path.exists(dst): if not os.path.exists(dst):
@@ -535,12 +521,3 @@ def checkIfProcessRunning(processName):
def restart_program(): def restart_program():
python = sys.executable python = sys.executable
os.execl(python, python, *sys.argv) os.execl(python, python, *sys.argv)
# JUNK CODE FOR LEARNING PROGRESS BARS:
# from tqdm import tqdm
# loop = tqdm(total = 1000, position = 0, leave = False)
# for k in range(1001):
# loop.set_description("Loading...".format(k))
# loop.update(1)
# loop.close