Skip to content

Commit f85dfbb

Browse files
committed
remove old settings migration
1 parent f3f954d commit f85dfbb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

devdocs_desktop.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import sys
66
import json
77
import dbus
8-
import shutil
98
import signal
109
import argparse
1110
import webbrowser
@@ -146,14 +145,10 @@ def search_webview(self):
146145
self.finder.search(text, opts, 100)
147146

148147
def create_settings_path(self):
149-
new_path = self.settings_path()
150-
old_path = os.path.expanduser('~/.devdocs-desktop')
148+
path = self.settings_path()
151149

152-
if os.path.exists(old_path):
153-
shutil.move(old_path, new_path)
154-
155-
if not os.path.exists(new_path):
156-
os.makedirs(self.settings_path())
150+
if not os.path.exists(path):
151+
os.makedirs(path)
157152

158153
def inject_custom_styles(self):
159154
style = open(self.file_path('styles/webview.css'), 'r').read()

0 commit comments

Comments
 (0)