Skip to content

Commit 0d65fb2

Browse files
committed
Fix with path validation in config
1 parent f481c66 commit 0d65fb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ovtp/server/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
for config_dir in config_dirs:
1212
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):
13+
if os.path.isdir(config_path) or 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.3
3+
version = 1.0.6.4
44
author = Dmitry Yakovlev
55
author_email = [email protected]
66
description = Over Transfer Protocol

0 commit comments

Comments
 (0)