Skip to content

Commit 1512b95

Browse files
beaderjonathanslenders
authored andcommitted
Fix logic error when checking existance of config_dir
1 parent e6e91b6 commit 1512b95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ptpython/entry_points/run_ptipython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def run():
2727
config_dir = os.path.expanduser(a['--config-dir'] or os.path.join('~', '.ptpython'))
2828

2929
# Create config directory.
30-
if not os.path.isdir(config_dir) or not os.path.islink(config_dir):
30+
if not os.path.isdir(config_dir) and not os.path.islink(config_dir):
3131
os.mkdir(config_dir)
3232

3333
# If IPython is not available, show message and exit here with error status

0 commit comments

Comments
 (0)