Skip to content

Commit

Permalink
fix pth
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed May 2, 2022
1 parent 076c82a commit 4f06bc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- fix pth when the current prefix is not the last

## [v0.5.1] - 2022-05-02

- add metadata
Expand Down
3 changes: 1 addition & 2 deletions cmeel/consts.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import os
import sys

CMEEL_PREFIX = "cmeel.prefix"
SITELIB = os.sep.join(
["lib", "python" + ".".join(sys.version.split(".")[:2]), "site-packages"]
)
CMEEL_PREFIX = "cmeel.prefix"
CMEEL_PTH = os.sep.join([CMEEL_PREFIX, SITELIB])
6 changes: 3 additions & 3 deletions cmeel/pth.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import sys
from pathlib import Path

from . import consts
from .consts import CMEEL_PREFIX, SITELIB

sys.path.append(os.sep.join([sys.path[-1], consts.CMEEL_PTH]))
sys.path.append(str(Path(__file__).parent.parent / CMEEL_PREFIX / SITELIB))

0 comments on commit 4f06bc7

Please sign in to comment.