pythonwin from dos

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alberto Mantovani

    pythonwin from dos

    hi,
    how is it possible to run a python script in the pythonwin
    environment from dos command line?
    If I use the command "/run scriptname.py" and the pythonwin is already
    opened I get error, so someone can help me?

    thanks
    Alberto
  • John Roth

    #2
    Re: pythonwin from dos


    "Alberto Mantovani" <alberto.mantov aniNOSPAM@bolog na.marelli.it> wrote in
    message news:3f731176.3 3482654@powerne ws.libero.it...[color=blue]
    > hi,
    > how is it possible to run a python script in the pythonwin
    > environment from dos command line?
    > If I use the command "/run scriptname.py" and the pythonwin is already
    > opened I get error, so someone can help me?[/color]

    Why do you want to run it in Pythonwin? To run a script from
    one of the command lines, the correct command is:

    python scriptname.py parameters....

    Of course, python.exe has to be on the path.

    John Roth[color=blue]
    >
    > thanks
    > Alberto[/color]


    Comment

    • Alberto Mantovani

      #3
      Re: pythonwin from dos

      On Thu, 25 Sep 2003 12:40:10 -0400, "John Roth"
      <newsgroups@jhr othjr.com> wrote:


      [color=blue]
      >
      >"Alberto Mantovani" <alberto.mantov aniNOSPAM@bolog na.marelli.it> wrote in
      >message news:3f731176.3 3482654@powerne ws.libero.it...[color=green]
      >> hi,
      >> how is it possible to run a python script in the pythonwin
      >> environment from dos command line?
      >> If I use the command "/run scriptname.py" and the pythonwin is already
      >> opened I get error, so someone can help me?[/color]
      >
      >Why do you want to run it in Pythonwin? To run a script from
      >one of the command lines, the correct command is:
      >
      > python scriptname.py parameters....[/color]

      I know this, but my problem is to run the script in pythonwin from dos
      when pythonwin is already opened.

      Comment

      • John Roth

        #4
        Re: pythonwin from dos


        "Alberto Mantovani" <alberto.mantov aniNOSPAM@bolog na.marelli.it> wrote in
        message news:3f7591fe.1 890578@powernew s.libero.it...[color=blue]
        > On Thu, 25 Sep 2003 12:40:10 -0400, "John Roth"
        > <newsgroups@jhr othjr.com> wrote:
        >
        >
        >[color=green]
        > >
        > >"Alberto Mantovani" <alberto.mantov aniNOSPAM@bolog na.marelli.it> wrote in
        > >message news:3f731176.3 3482654@powerne ws.libero.it...[color=darkred]
        > >> hi,
        > >> how is it possible to run a python script in the pythonwin
        > >> environment from dos command line?
        > >> If I use the command "/run scriptname.py" and the pythonwin is already
        > >> opened I get error, so someone can help me?[/color]
        > >
        > >Why do you want to run it in Pythonwin? To run a script from
        > >one of the command lines, the correct command is:
        > >
        > > python scriptname.py parameters....[/color]
        >
        > I know this, but my problem is to run the script in pythonwin from dos
        > when pythonwin is already opened.[/color]

        Look in the registry and find out how Pythonwin handles the command
        from the shell, then do the same thing.

        John Roth


        Comment

        Working...