Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 726edc7

Browse files
author
Stepan Neretin
committed
add change data dir option
1 parent f2c000c commit 726edc7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

testgres/node.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,14 @@ def logs_dir(self):
441441
@property
442442
def data_dir(self):
443443
# NOTE: we can't run initdb without user's args
444-
return os.path.join(self.base_dir, DATA_DIR)
444+
if hasattr(self, '_data_dir'):
445+
return self._data_dir
446+
else:
447+
return os.path.join(self.base_dir, DATA_DIR)
448+
449+
@data_dir.setter
450+
def data_dir(self, value):
451+
self._data_dir = value
445452

446453
@property
447454
def utils_log_file(self):

0 commit comments

Comments
 (0)