Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60010 > unrolled thread
| Started by | Tim Chase <python.list@tim.thechases.com> |
|---|---|
| First post | 2013-11-19 10:31 -0600 |
| Last post | 2013-11-19 10:31 -0600 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: My first real request for help Tim Chase <python.list@tim.thechases.com> - 2013-11-19 10:31 -0600
| From | Tim Chase <python.list@tim.thechases.com> |
|---|---|
| Date | 2013-11-19 10:31 -0600 |
| Subject | Re: My first real request for help |
| Message-ID | <mailman.2925.1384880970.18130.python-list@python.org> |
On 2013-11-19 11:19, Gene Heskett wrote:
>>> Traceback (most recent call last):
>>> File "/usr/bin/axis", line 3326, in <module>
>>>
>>> _dynamic_tabs(inifile)
>>>
>>> File "/usr/bin/axis", line 3182, in _dynamic_tabs
>>>
>>> child = Popen(cmd)
>
> You are suggesting I edit /usr/lib/python2.6/subprocess.py?
I think Peter is suggesting that line 3182 in _dynamic_tabs should
either read (the better way)
child = Popen([cmd, args])
or (the not-so-good way)
child = Popen(cmd, shell=True)
If you drop a breakpoint right before that line, you should be able
to tell what it's trying to pass into Popen:
print("DEBUGGING: %s" % repr(cmd))
child = Popen(...)
which should give you insight into what's being called.
-tkc
PS: yes, I know about using "%r" in the format string rather than
"%s" plus a repr() call, but weird things happen in the event that
the parameter is a tuple; it could also have been written
print("DEBUGGING: %r" % (cmd,))
but I find that a tad uglier.
Back to top | Article view | comp.lang.python
csiph-web