On 2010-01-11, monkeys paw wrote:
> >>> print 'hey'
> 'hey'
> >>> # I want to access the shell here, how do i do that?
Look into the commands module.
--
http://mail.python.org/mailman/listinfo/python-list
monkeys paw wrote:
How do you access the command line from the
python interpreter?
on unix:
type python
>>> print 'hey'
'hey'
>>> # I want to access the shell here, how do i do that?
If you're interactive, I'd just use standard process/job control,
and hit control+Z to suspend and "fg"
monkeys paw writes:
> How do you access the command line from the
> python interpreter?
>
> on unix:
>
> type python
>
print 'hey'
> 'hey'
# I want to access the shell here, how do i do that?
Like this?
>>> import os
>>> os.system('echo $HOME')
/Users/arno
0
>>>
--
Arnaud
--
htt
How do you access the command line from the
python interpreter?
on unix:
type python
>>> print 'hey'
'hey'
>>> # I want to access the shell here, how do i do that?
--
http://mail.python.org/mailman/listinfo/python-list