equal
deleted
inserted
replaced
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) { |