mercurial/exewrapper.c
changeset 17063 3fbc6e3abdbd
parent 17058 d5422faf648c
child 17732 93d97a212559
equal deleted inserted replaced
17062:682a8ad26138 17063:3fbc6e3abdbd
    54 		strcat_s(pyscript, sizeof(pyscript), "exe.py");
    54 		strcat_s(pyscript, sizeof(pyscript), "exe.py");
    55 	}
    55 	}
    56 
    56 
    57 	/*
    57 	/*
    58 	Only add the pyscript to the args, if it's not already there. It may
    58 	Only add the pyscript to the args, if it's not already there. It may
    59 	already be there, if Mercurial spawned a child process of itself, in
    59 	already be there, if the script spawned a child process of itself, in
    60 	the same way as it got called, that is, with the pyscript already in
    60 	the same way as it got called, that is, with the pyscript already in
    61 	place. So we optionally accept the pyscript as the first argument
    61 	place. So we optionally accept the pyscript as the first argument
    62 	(argv[1]), letting our exe taking the role of the python interpreter.
    62 	(argv[1]), letting our exe taking the role of the python interpreter.
    63 	*/
    63 	*/
    64 	if (argc >= 2 && strcmp(argv[1], pyscript) == 0) {
    64 	if (argc >= 2 && strcmp(argv[1], pyscript) == 0) {