Tim Golden m...@timgolden.me.uk added the comment:
OK; issue2304 is now fixed and closed. But it doesn't seem to make any
difference to this behaviour. I've just retested and I see on py3k the
behaviour the OP saw. CreateProcess does the same thing and I couldn't even get
it to work with
Brian Curtin cur...@acm.org added the comment:
I'm not seeing the same thing Tim sees on 2.6, or 3.1 for that matter. Looks
like this is still an issue.
--
nosy: +brian.curtin
priority: - normal
stage: - test needed
versions: +Python 2.6, Python 3.1 -Python 2.5
New submission from Erik Sandberg sandb...@virtutech.com:
When subprocess.call is told to execute a .bat file on Windows, and the
path to the batch file is given as an absolute path, and the path
includes a left parenthesis ('('), then the call fails with a message
similar to the following; it
Erik Sandberg sandb...@virtutech.com added the comment:
I'm using Python 2.5.1, by the way.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5484
___
Erik Sandberg sandb...@virtutech.com added the comment:
I have narrowed down the problem further: The same error happens with
the following code:
import win32process
win32process.CreateProcess(None, 'f(o.bat', None, None, 1, 0, None,
None, win32process.STARTUPINFO())
--
Erik Sandberg sandb...@virtutech.com added the comment:
argh, it seems that the problem is in how CreateProcess works; exactly
the same error can be provoked from C.
--
Added file: http://bugs.python.org/file13321/parenbug.c
___
Python tracker
Erik Sandberg sandb...@virtutech.com added the comment:
I experimented further, the only way to run a .bat file whose name
contains funny characters, seems to be:
subprocess.call('f(o.bat', shell=True)
--
___
Python tracker rep...@bugs.python.org
Tim Golden m...@timgolden.me.uk added the comment:
Erik Sandberg wrote:
Erik Sandberg sandb...@virtutech.com added the comment:
I experimented further, the only way to run a .bat file whose name
contains funny characters, seems to be:
subprocess.call('f(o.bat', shell=True)
Well there's
Erik Sandberg sandb...@virtutech.com added the comment:
Did you test your code? I'm pretty sure I tried almost exactly the code
you suggest, and got an error like 't' is not recognized as an internal
or external command...' (I cannot test this right now as I don't have
access to Windows
Tim Golden m...@timgolden.me.uk added the comment:
Erik Sandberg wrote:
Erik Sandberg sandb...@virtutech.com added the comment:
Did you test your code?
Several times, cutting and pasting into the Python interpreter.
But I missed the fact that you were running Python 2.5
Python 2.6.1
10 matches
Mail list logo