Allow the data_directory to contain colons (fully qualified paths)

This commit is contained in:
voussoir 2017-11-16 16:32:05 -08:00
parent 73d2ef5bbf
commit 009c0dc678

View file

@ -1099,7 +1099,7 @@ class PhotoDB(PDBAlbumMixin, PDBBookmarkMixin, PDBPhotoMixin, PDBTagMixin, PDBUs
data_directory = constants.DEFAULT_DATADIR
# DATA DIR PREP
data_directory = helpers.normalize_filepath(data_directory, allowed='/\\')
data_directory = helpers.normalize_filepath(data_directory, allowed=':/\\')
self.data_directory = pathclass.Path(data_directory)
os.makedirs(self.data_directory.absolute_path, exist_ok=True)