Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove lock file as part of --reset #3357

Merged
merged 4 commits into from
Aug 17, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Config: Remove spyder.lock on Unix systems
It was only working for Windows
  • Loading branch information
ccordoba12 committed Aug 17, 2016
commit 869e554536a66770be073eeacaa72fef412d83d3
2 changes: 1 addition & 1 deletion spyderlib/config/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def reset_config_files():
print("*** Reset Spyder settings to defaults ***", file=STDERR)
for fname in SAVED_CONFIG_FILES:
cfg_fname = get_conf_path(fname)
if osp.isfile(cfg_fname):
if osp.isfile(cfg_fname) or osp.islink(cfg_fname):
os.remove(cfg_fname)
elif osp.isdir(cfg_fname):
shutil.rmtree(cfg_fname)
Expand Down