Hi,
I'm passing what I think is a string parameter to another Python
program (spawn.py) - see the code snip below. But only the counter
part gets printed to a log file via spawn.py. Yet the echo print to
the output window shows the whole string with the fc part. Better
explained below I hope,
On Sep 1, 9:54 am, goldtech [EMAIL PROTECTED] wrote:
Hi,
I'm passing what I think is a string parameter to another Python
program (spawn.py) - see the code snip below. But only the counter
part gets printed to a log file via spawn.py. Yet the echo print to
the output window shows the whole
goldtech wrote:
Hi,
I'm passing what I think is a string parameter to another Python
program (spawn.py) - see the code snip below. But only the counter
part gets printed to a log file via spawn.py. Yet the echo print to
the output window shows the whole string with the fc part. Better
Steve Holden wrote:
[...]
in_featclass = sys.argv[1]
Try
in_featclass = sys.argv[1:]
Sorry, that should have been
in_featclass = .join(sys.argv[1:])+\n
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd
snip...
--
Try handle.write(repr(sys.argv[1:]) + \n)
and come back with your conclusions ... unless of course someone has
spoonfed you in the meantime.
Another clue: write yourself a little arg-dumper script and try
running it in a Command Prompt window.
8---