Skip to content

Commit 65f0ba0

Browse files
committed
Merge pull request kivy#697 from inclement/pygame_local_properties
Fixed pygame bootstrap local.properties creation
2 parents f84e96b + 683d94b commit 65f0ba0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pythonforandroid/bootstraps/pygame/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def run_distribute(self):
3333

3434
info('Copying default files')
3535
shprint(sh.cp, '-a', join(self.build_dir, 'project.properties'), '.')
36-
shprint(sh.cp, '-a', join(src_path, 'local.properties'), '.')
3736
shprint(sh.cp, '-a', join(src_path, 'build.py'), '.')
3837
shprint(sh.cp, '-a', join(src_path, 'buildlib'), '.')
3938
shprint(sh.cp, '-a', join(src_path, 'src'), '.')
@@ -42,6 +41,9 @@ def run_distribute(self):
4241
shprint(sh.cp, '-a', join(src_path, 'blacklist.txt'), '.')
4342
shprint(sh.cp, '-a', join(src_path, 'whitelist.txt'), '.')
4443

44+
with open('local.properties', 'w') as fileh:
45+
fileh.write('sdk.dir={}'.format(self.ctx.sdk_dir))
46+
4547
info('Copying python distribution')
4648
hostpython = sh.Command(self.ctx.hostpython)
4749
# AND: This *doesn't* need to be in arm env?

0 commit comments

Comments
 (0)