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 a451952 commit 910bca9Copy full SHA for 910bca9
ptpython/entry_points/run_ptipython.py
@@ -27,7 +27,7 @@ def run():
27
config_dir = os.path.expanduser(a['--config-dir'] or '~/.ptpython/')
28
29
# Create config directory.
30
- if not os.path.isdir(config_dir):
+ if not os.path.isdir(config_dir) or 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
ptpython/entry_points/run_ptpython.py
@@ -32,7 +32,7 @@ def run():
34
35
36
37
38
# Startup path
0 commit comments