Shop OBEX P1 Docs P2 Docs Learn Events
Propellent search path — Parallax Forums

Propellent search path

jazzedjazzed Posts: 11,803
edited 2008-06-24 16:33 in Propeller 1
For Jeff,

Most programs look in the user's "current directory" for files specified on the command line. Propellent does not.

I put propellent.exe in a directory in my path, cd to another directory containing source to compile, and run propellent to compile, propellent looks for the file in the propellent directory unless I specify an absolute path for the file to compile. This is not "typical" command line behaviour; can you address this?

Thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-06-24 16:25
    Did you try prepending ".\" to your relative path? This will ensure that the "relative path" actually is relative to the current directory.

    -Phil
  • jazzedjazzed Posts: 11,803
    edited 2008-06-24 16:33
    Yes, but no luck. I ended up having to fully qualify it which is not so bad of course.
    Having to spend time finding a solution was slightly annoying. The environment was a Makefile.

    top    = hello
    libdir = "$(PWD)\..\Library"
    BUILDER = propellent /lib $(libdir) /compile /savebinary
    LOADER  = propellent /PORT AUTO "$(PWD)\$(top).binary"
    all:  Makefile $(top).binary
     $(LOADER)
     
    $(top).binary: $(top).spin
     $(BUILDER) "$(PWD)\$<"
    
    




    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sign In or Register to comment.