![]() # this is just a mock-up path to a local interpreter, since _file_ doesn't include the drive letter on wineĬWD = 'Z:%s'%_file_.replace('test.py','').replace('\\','/') (I just reduced the processing, so this code wastes MUCH less CPU cycles) # -*- coding: utf-8 -*-įrom _winapi import CreatePipe, CreateProcess, CloseHandle Note that the code came from the CPU-heavy multiprocessing module. I already have the foundation with a 1-way Parent->Child pipe that works, but it's giving me a few issues:ġ: I can't seem to get a 2nd Child->Parent pipe to run without the program hangingĢ: the output of the subprocess only prints after the main process is closed (tbh though I rather want the main process to actively print through subprocess feedback, even if it's delayed a few ns) I can't find anything on Google or DDG, and I've been searching for days, but nobody uses these modules for some reason. Sorry for the lousy title, "InterProcess Communication" was too longīasically, I'm looking to use the native _winapi and msvcrt modules to launch an integrated python interpreter and communicate with it over pipes
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |