]> granicus.if.org Git - python/commitdiff
Drop a duplicate line. (#1809)
authorEric Snow <ericsnowcurrently@gmail.com>
Thu, 25 May 2017 17:05:50 +0000 (10:05 -0700)
committerGitHub <noreply@github.com>
Thu, 25 May 2017 17:05:50 +0000 (10:05 -0700)
Python/pylifecycle.c

index fd04b8233b328231dd29b7e5f783f45fbe041d84..048c2b283d48b463558de875d1809c4d53c31922 100644 (file)
@@ -594,11 +594,10 @@ int _Py_InitializeMainInterpreter(const _PyMainInterpreterConfig *config)
     /* Finish setting up the sys module and import system */
     /* GetPath may initialize state that _PySys_EndInit locks
        in, and so has to be called first. */
+    /* TODO: Call Py_GetPath() in Py_ReadConfig, rather than here */
     PySys_SetPath(Py_GetPath());
     if (_PySys_EndInit(interp->sysdict) < 0)
         Py_FatalError("Py_InitializeMainInterpreter: can't finish initializing sys");
-    /* TODO: Call Py_GetPath() in Py_ReadConfig, rather than here */
-    PySys_SetPath(Py_GetPath());
     initexternalimport(interp);
 
     /* initialize the faulthandler module */