path question for aap on win98

Help
2003-05-03
2003-05-04
  • cage slagel

    cage slagel - 2003-05-03

    on WINS98, I get this error  when trying the basic "aap --help" test after installing.  Note, I did add c:\proogram files\aap\exec to my path.  Any suggestions would be appreciated.

    C:\>aap --help
    C:\PYTHON22\PYTHON.EXE: can't open file 'Main.py'
    C:\>dir "C:\PROGRAM FILES\AAP\EXEC\main.py

    Volume in drive C has no label
    Volume Serial Number is 123C-19FE
    Directory of C:\Program Files\aap\Exec

    MAIN     PY          9,715  04-28-03  2:12p Main.py
             1 file(s)          9,715 bytes
             0 dir(s)        7,294.41 MB free

    C:\>path
    PATH=C:\PERL\BIN\;C:\PYTHON22;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\WIN98RK;C:\PROGRAM FILES\MTS;C:\PROGRA~1\VIM\VIM61;C:\PROGRAM FILES\AAP\EXEC

    Thanks,

    Cage

     
    • cage slagel

      cage slagel - 2003-05-04

      Resolved by adding an AAPPATH variable to aap.bat.
      Variable is hard coded to the location of  aap on my machine so not very flexible.
      See new aap.bat below:

      @echo off
      rem Simplistic script to execute aap.

      set PYTHON=python
      set AAPPATH="C:\Program Files\aap\Exec"

      if .%OS%==.Windows_NT goto ntaction

      rem collect the arguments in AAPARGS for Win95
      set AAPARGS=
      :loopstart
      if .%1==. goto loopend
      set AAPARGS=%AAPARGS% %1
      shift
      goto loopstart

      :loopend
      %PYTHON% %AAPPATH%\Main.py %AAPARGS%
      goto eof

      :ntaction
      rem for WinNT we can use %*
      %PYTHON% Main.py %*

      :eof
      set AAPARGS=

      Cage

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks