Fix some issues that prevented scripts from working properly #118

Merged
ayasa520 merged 7 commits from main into main 2023-08-25 05:02:59 -04:00
Showing only changes of commit 6d5af57ebc - Show all commits
+2 -2
View File
@@ -73,8 +73,8 @@ class General:
if not os.path.isfile(os.path.join(bin_dir, "resetprop")):
if not os.path.exists(bin_dir):
os.makedirs(bin_dir)
shutil.copy(os.path.join(
"./bin", self.arch[0], "resetprop"), bin_dir)
shutil.copy(os.path.join(os.path.join(os.path.dirname(__file__), "..", "bin",
self.arch[0], "resetprop")), bin_dir)
os.chmod(os.path.join(bin_dir, "resetprop"), 0o755)
if not os.path.isfile(os.path.join(bin_dir, "resetprop.sh")):
with open(os.path.join(bin_dir, "resetprop.sh"), "w") as f: