0

I am currently working on a personal tiny Django site to manage my music and movie resources as an exercise.

The concrete environment:

  • Python 2.7
  • mod_wsgi 3.3
  • Apache 2.2.22
  • Windows XP

The problem I met is when I use subprocess.Popen to fork new process to open my movie in a certain player, the process will be forked in background, meaning that I can only see it in the Task Manager, but there is no visible Player Interface. So it is really strange because I can even hear the voice in the movie, but cannot see the picture.(I tried to open browsers and many other executables in this way, all running in background)

If I use the development server shipped with Django, this issue is gone. So I guess the issue is highly related to Apache or mod_wsgi ?

Any suggestions and advices ?

1 Answer 1

1

Check CREATE_NEW_CONSOLE and STARTUPINFO.wShowWindow parameters. You may want to use then when you start new process through subprocess.Popen.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your enlightening stuff !

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.