Skip to content

Commit

Permalink
Merge pull request #574 from jkloetzke/archive-user-path
Browse files Browse the repository at this point in the history
Archive path user expansion
  • Loading branch information
jkloetzke authored Jul 7, 2024
2 parents 5fab53e + d1f9ebc commit bdbaadb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
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

0 comments on commit bdbaadb

Please sign in to comment.