1
0
Fork 0
mirror of https://github.com/ArtemSBulgakov/buildozer-action.git synced 2024-08-16 10:09:52 +02:00

Fix patching global Buildozer directory

This commit is contained in:
Artem Bulgakov 2020-07-31 23:13:39 +03:00 committed by GitHub
parent 564eb997d5
commit 8a4ce47203
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,14 +110,14 @@ def apply_patches():
source = open(buildozer.__file__, "r", encoding="utf-8").read()
new_source = source.replace(
"""
@property
def global_buildozer_dir(self):
return join(expanduser('~'), '.buildozer')
@property
def global_buildozer_dir(self):
return join(expanduser('~'), '.buildozer')
""",
f"""
@property
def global_buildozer_dir(self):
return '{os.environ["GITHUB_WORKSPACE"]}/.buildozer_global'
@property
def global_buildozer_dir(self):
return '{os.environ["GITHUB_WORKSPACE"]}/.buildozer_global'
""",
)
if new_source == source: