Skip to content

Commit f481c66

Browse files
committed
Changed config path validation
1 parent 34fd1ee commit f481c66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ovtp/server/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
]
1010

1111
for config_dir in config_dirs:
12-
if os.access(os.path.join(*config_dir[0]), os.W_OK):
13-
config_path = os.path.join(*config_dir[0], *config_dir[1], 'ovtp')
12+
config_path = os.path.join(*config_dir[0], *config_dir[1], 'ovtp')
13+
if os.path.isdir(config_path) and os.access(os.path.join(*config_dir[0]), os.W_OK):
1414
break
1515
else:
1616
raise RuntimeError("Can't create ovcrypt config directory")

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = ovtp
3-
version = 1.0.6.2
3+
version = 1.0.6.3
44
author = Dmitry Yakovlev
55
author_email = [email protected]
66
description = Over Transfer Protocol

0 commit comments

Comments
 (0)