running python from makefile under cygwin

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nickblock
    New Member
    • Jan 2010
    • 1

    running python from makefile under cygwin

    I am having trouble getting python scripts to run as part of a make process. I can run the same scripts fine from the cygwin shell. In the makefile I have tried;

    ./Create.py
    tcsh -c 'Create.py'
    python Create.py
    /cygdrive/c/python26/python Create.py

    all of these attempts do run the script but result in failure to find any packages ie

    ImportError: No module named os

    I have the python that is installed with cygwin and the windows version installed (I have tried removing this).

    what am i doing wrong?
    Any help/advice much appreciated
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    When you start a new shell it probably does not have the same path value as the normal user mode cygwin shell.

    Comment

    Working...