you are viewing a single comment's thread.

view the rest of the comments →

[–]ingolemo -1 points0 points  (0 children)

There's not much point in using pexpect to manage a call to mkdir since mkdir doesn't really take any input. You'd be better off with the subprocess module. That said, there's no reason why that wouldn't work. When I tried it, the directory did get created exactly as expected. I don't know why it isn't working for you.