Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit726edc7

Browse files
author
Stepan Neretin
committed
add change data dir option
1 parentf2c000c commit726edc7

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
@@ -441,7 +441,14 @@ def logs_dir(self):
441441
@property
442442
defdata_dir(self):
443443
# NOTE: we can't run initdb without user's args
444-
returnos.path.join(self.base_dir,DATA_DIR)
444+
ifhasattr(self,'_data_dir'):
445+
returnself._data_dir
446+
else:
447+
returnos.path.join(self.base_dir,DATA_DIR)
448+
449+
@data_dir.setter
450+
defdata_dir(self,value):
451+
self._data_dir=value
445452

446453
@property
447454
defutils_log_file(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp