Skip to content

Commit 7812574

Browse files
committed
Made bootstrap loading work with setup.py
1 parent 62b610f commit 7812574

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pythonforandroid/__init__.py

Whitespace-only changes.

pythonforandroid/toolchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ def get_dist_dir(self, name):
831831
@property
832832
def name(self):
833833
modname = self.__class__.__module__
834-
return modname.split(".", 1)[-1]
834+
return modname.split(".", 2)[-1]
835835

836836
def prepare_build_dir(self):
837837
'''Ensure that a build dir exists for the recipe. This same single
@@ -885,7 +885,7 @@ def get_bootstrap(cls, name, ctx):
885885
cls.bootstraps = {}
886886
if name in cls.bootstraps:
887887
return cls.bootstraps[name]
888-
mod = importlib.import_module('bootstraps.{}'.format(name))
888+
mod = importlib.import_module('pythonforandroid.bootstraps.{}'.format(name))
889889
if len(logger.handlers) > 1:
890890
logger.removeHandler(logger.handlers[1])
891891
bootstrap = mod.bootstrap

0 commit comments

Comments
 (0)