Skip to content

Commit 8676d48

Browse files
author
Stepan Neretin
committed
add change data dir option
1 parent 67beb95 commit 8676d48

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

testgres/node.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,14 @@ def logs_dir(self):
316316
@property
317317
def data_dir(self):
318318
# NOTE: we can't run initdb without user's args
319-
return os.path.join(self.base_dir, DATA_DIR)
319+
if hasattr(self, '_data_dir'):
320+
return self._data_dir
321+
else:
322+
return os.path.join(self.base_dir, DATA_DIR)
323+
324+
@data_dir.setter
325+
def data_dir(self, value):
326+
self._data_dir = value
320327

321328
@property
322329
def utils_log_file(self):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy