Skip to content

Commit

Permalink
Use absolute imports rather than relative
Browse files Browse the repository at this point in the history
Apparently this is in general preferable, and certainly the bulk of such
pysam imports (71 vs 3) are already "pysam.libcfoo".
  • Loading branch information
jmarshall committed Apr 23, 2024
1 parent e61ac20 commit b163e9e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pysam/libcbcf.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if sys.version_info < (3, 8):
else:
from typing import Literal

from .libchtslib import HTSFile, _HasFileNo
from pysam.libchtslib import HTSFile, _HasFileNo

_D = TypeVar("_D")
_K = TypeVar("_K", str, Union[int, str])
Expand Down
4 changes: 2 additions & 2 deletions pysam/libcutils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ from libc.stdio cimport stdout as c_stdout
from posix.fcntl cimport open as c_open, O_WRONLY
from posix.unistd cimport SEEK_SET, SEEK_CUR, SEEK_END

from .libcsamtools cimport samtools_dispatch, samtools_set_stdout, samtools_set_stderr, \
from pysam.libcsamtools cimport samtools_dispatch, samtools_set_stdout, samtools_set_stderr, \
samtools_close_stdout, samtools_close_stderr, samtools_set_stdout_fn

from .libcbcftools cimport bcftools_dispatch, bcftools_set_stdout, bcftools_set_stderr, \
from pysam.libcbcftools cimport bcftools_dispatch, bcftools_set_stdout, bcftools_set_stderr, \
bcftools_close_stdout, bcftools_close_stderr, bcftools_set_stdout_fn

#####################################################################
Expand Down

0 comments on commit b163e9e

Please sign in to comment.