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

Archive path user expansion #574

Merged
merged 2 commits into from
Jul 7, 2024
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
8 changes: 5 additions & 3 deletions doc/manual/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2085,9 +2085,11 @@ azure Microsoft Azure Blob storage backend. The account must be specified
Finally the container must be given in ``container``. Requires the
``azure-storage-blob`` Python3 library to be installed.
file Use a local directory as binary artifact repository. The directory
is specified in the ``path`` key as absolute path. The optional
``fileMode`` and ``directoryMode`` keys take the desired access
modes as numeric value to override the default umask derived modes.
should be specified in the ``path`` key as absolute path. An
initial ``~`` or ``~user`` component is replaced by the users home
directory. The optional ``fileMode`` and ``directoryMode`` keys
take the desired access modes as numeric value to override the
default umask derived modes.
http Uses a HTTP server as binary artifact repository. The server has to
support the HEAD, PUT and GET methods. The base URL is given in the
``url`` key. The optional ``sslVerify`` boolean key controls
Expand Down
2 changes: 1 addition & 1 deletion pym/bob/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ def close(self):
class LocalArchive(BaseArchive):
def __init__(self, spec):
super().__init__(spec)
self.__basePath = os.path.abspath(spec["path"])
self.__basePath = os.path.abspath(os.path.expanduser(spec["path"]))
self.__fileMode = spec.get("fileMode")
self.__dirMode = spec.get("directoryMode")

Expand Down
Loading