]> git.lyx.org Git - features.git/commitdiff
Revert "Check for old "LyX 2.3" user directory when configuring."
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 29 Sep 2018 21:30:09 +0000 (17:30 -0400)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:49 +0000 (14:39 +0200)
This reverts commit 1fe6352d4f75776d40b17f714af772e97a039409.

lib/configure.py

index 3db23f66b1249a8f8959587f31b75f78fe409147..05ee457c2371b465f4e5cb0302e3c2b34e2fad5e 100644 (file)
@@ -186,22 +186,6 @@ def checkUpgrade():
                 return
 
 
-def checkUpgradeWin():
-    ''' Check for upgrade from previous version '''
-    cwd = os.getcwd()
-    basename = os.path.basename(cwd)
-    if basename != "LyX":
-        return
-    lyxrc = os.path.join(cwd, outfile)
-    if os.path.isfile(lyxrc):
-        return
-    olddir = os.path.join(os.path.dirname(cwd), "LyX2.3")
-    if not os.path.isdir(oldir):
-        return
-    logger.info('Copying ' + olddir + ' into ' + cwd)
-    copy_tree(olddir, cwd, True)
-
-
 def createDirectories():
     ''' Create the build directories if necessary '''
     for dir in ['bind', 'clipart', 'doc', 'examples', 'images', 'kbd',
@@ -1856,8 +1840,6 @@ Options:
     setEnviron()
     if sys.platform == 'darwin' and len(version_suffix) > 0:
         checkUpgrade()
-    if os.name == 'nt':
-        checkUpgradeWin()
     createDirectories()
     dtl_tools = checkDTLtools()
     ## Write the first part of outfile