Skip to content

Commit

Permalink
fix windows reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Neunert committed Feb 24, 2023
1 parent 3671a3c commit 7fdabe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cryptoadvance/specter/util/reflection.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def get_subclasses_for_clazz(
except ModuleNotFoundError as e:
try:
# Another style is orgname.specterext.extensionid, for that we have to guess the orgname:
orgname = str(importer).split(os.path.sep)[-2]
orgname = str(importer.path).split(os.path.sep)[-2]
logger.debug(f"guessing orgname: {orgname}")
module = import_module(
f"{orgname}.specterext.{module_name}.service"
Expand Down

0 comments on commit 7fdabe4

Please sign in to comment.