We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6e91b6 commit 1512b95Copy full SHA for 1512b95
ptpython/entry_points/run_ptipython.py
@@ -27,7 +27,7 @@ def run():
27
config_dir = os.path.expanduser(a['--config-dir'] or os.path.join('~', '.ptpython'))
28
29
# Create config directory.
30
- if not os.path.isdir(config_dir) or not os.path.islink(config_dir):
+ if not os.path.isdir(config_dir) and not os.path.islink(config_dir):
31
os.mkdir(config_dir)
32
33
# If IPython is not available, show message and exit here with error status
0 commit comments