Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.1.2 #7

Merged
merged 5 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.2] - 2023-09-05

### Fixed

- Wrong use of the module path

## [0.1.1] - 2023-09-05

### Changed
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "py-toolbox"
version = "0.1.1"
version = "0.1.2"
authors = [{ name = "Jean-Sébastien CONAN", email = "jsconan@gmail.com" }]
description = "A set of utilities for Python projects"
readme = "README.md"
Expand Down
5 changes: 1 addition & 4 deletions toolbox/files/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ def get_module_folder_path(name: str) -> PurePath():
Returns:
PurePath: The path to the folder containing the given module.
"""
if name in sys.modules:
return PurePath(sys.modules[name].__path__)

return PurePath()
return get_module_path(name).parent


def get_application_path(name: str) -> PurePath:
Expand Down