fix: Fix simlink path issue
https://github.com/casualsnek/waydroid_script/issues/101 Relative path fails when using symlink. Replace it with absolute path.
This commit is contained in:
parent
a80ff8e855
commit
6d5af57ebc
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue