mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Enlarged version buffer (nobody expects the spanish inquisition:-)
Support for new sys.path code in config.c
This commit is contained in:
parent
c5b26f4a05
commit
bac428d2e0
1 changed files with 5 additions and 1 deletions
|
|
@ -39,6 +39,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#include <console.h>
|
#include <console.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
char *fileargument;
|
||||||
|
|
||||||
main(argc, argv)
|
main(argc, argv)
|
||||||
int argc;
|
int argc;
|
||||||
char **argv;
|
char **argv;
|
||||||
|
|
@ -51,7 +53,7 @@ main(argc, argv)
|
||||||
extern char *about_message;
|
extern char *about_message;
|
||||||
extern char *about_item;
|
extern char *about_item;
|
||||||
extern char *getversion(), *getcopyright();
|
extern char *getversion(), *getcopyright();
|
||||||
static char buf[256];
|
static char buf[1024];
|
||||||
sprintf(buf, "Python %s\r\
|
sprintf(buf, "Python %s\r\
|
||||||
\r\
|
\r\
|
||||||
%s\r\
|
%s\r\
|
||||||
|
|
@ -76,5 +78,7 @@ Motto: \"Nobody expects the Spanish Inquisition!\"",
|
||||||
else
|
else
|
||||||
console_options.title = "\pPython";
|
console_options.title = "\pPython";
|
||||||
#endif /* CONSOLE_IO */
|
#endif /* CONSOLE_IO */
|
||||||
|
if ( argc > 1 )
|
||||||
|
fileargument = argv[1]; /* Mod by Jack to do chdir */
|
||||||
realmain(argc, argv);
|
realmain(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue