Skip to content

Commit

Permalink
Added functions to get source and include directories
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlegiantJGC committed Jul 17, 2024
1 parent a07bd6f commit d15fd94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/amulet_nbt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@


def get_include() -> str:
"""C++ include directory"""
import os

return os.path.join(__path__[0], "include")


def get_source() -> str:
"""C++ source directory"""
import os

return os.path.join(__path__[0], "cpp")


from ._nbt import (
# Abstract classes
AbstractBaseTag,
Expand Down
8 changes: 8 additions & 0 deletions src/amulet_nbt/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,16 @@ __all__ = [
"EncodingPreset",
"java_encoding",
"bedrock_encoding",
"get_include",
"get_source",
]

def get_include() -> str:
...

def get_source() -> str:
...

class _Readable(Protocol):
def read(self) -> bytes: ...

Expand Down

0 comments on commit d15fd94

Please sign in to comment.