Browse Source

Fix pykorlib import issues

pull/109/head
Adam Johnson 6 years ago
parent
commit
93c5963b3a
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 6
      korman/korlib/__init__.py

6
korman/korlib/__init__.py

@ -56,7 +56,13 @@ except ImportError:
def inspect_voribsfile(stream, header): def inspect_voribsfile(stream, header):
raise NotImplementedError("Ogg Vorbis not supported unless _korlib is compiled") raise NotImplementedError("Ogg Vorbis not supported unless _korlib is compiled")
def is_c_library():
return False
else: else:
def is_c_library():
return True
finally:
from .console import ConsoleToggler from .console import ConsoleToggler
from .texture import TEX_DETAIL_ALPHA, TEX_DETAIL_ADD, TEX_DETAIL_MULTIPLY from .texture import TEX_DETAIL_ALPHA, TEX_DETAIL_ADD, TEX_DETAIL_MULTIPLY

Loading…
Cancel
Save