]> gitweb.pimeys.fr Git - scripts-20-100.git/commitdiff
992fba3 : moron. 2 paths c'est mieux quand on C/c pas 2 fois le même.
authorVincent Le Gallic <legallic@crans.org>
Fri, 31 Jul 2015 19:56:43 +0000 (21:56 +0200)
committerVincent Le Gallic <legallic@crans.org>
Fri, 31 Jul 2015 19:56:43 +0000 (21:56 +0200)
extract_ipython.py

index b918e1111f5c7fa39712db386f70bf4b313b2e39..2e06dc67baa467503a1f2a5c7e44e8c5cef3c26d 100755 (executable)
@@ -23,7 +23,7 @@ req = 'SELECT * FROM history WHERE session=%s;' % sessionid
 
 history_file = os.path.expanduser('~/.config/ipython/profile_default/history.sqlite')
 if not os.path.isfile(history_file):
 
 history_file = os.path.expanduser('~/.config/ipython/profile_default/history.sqlite')
 if not os.path.isfile(history_file):
-    history_file = os.path.expanduser('~/.config/ipython/profile_default/history.sqlite')
+    history_file = os.path.expanduser('~/.ipython/profile_default/history.sqlite')
 
 c = sqlite3.connect(history_file)
 r = c.execute(req)
 
 c = sqlite3.connect(history_file)
 r = c.execute(req)