From 3482f9d77755c1b4e7684e85c0edc4555255668e Mon Sep 17 00:00:00 2001 From: BasioMeusPuga Date: Sat, 10 Mar 2018 21:10:13 +0530 Subject: [PATCH] Fix os.remove getting wrong path --- widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets.py b/widgets.py index 4c84f58..0cf3747 100644 --- a/widgets.py +++ b/widgets.py @@ -80,7 +80,7 @@ class Tab(QtWidgets.QWidget): for j in i[2]: file_extension = os.path.splitext(j)[1] if file_extension == '.css': - file_path = os.path.join(relative_path_root, j) + file_path = os.path.join(i[0], j) os.remove(file_path) relative_paths.append(os.path.join(relative_path_root, i[0]))