GithubHelp home page GithubHelp logo

stop setting CWD... about cabbage HOT 4 CLOSED

rorywalsh avatar rorywalsh commented on July 30, 2024
stop setting CWD...

from cabbage.

Comments (4)

TartanLlama avatar TartanLlama commented on July 30, 2024

Looking into getting ComboBoxes working without setting CWD atm. One issue is that CSound instructions like compileorc seem to rely on this (not sure if this is default behaviour or something which Cabbage does), so sending relative paths to them breaks. Users could handle this in their CSound code, but maybe you know of a better way?

from cabbage.

rorywalsh avatar rorywalsh commented on July 30, 2024

Csound typically uses the .csd location as the root dir unless otherwise specified. The issue I've seen in the past is that certain hosts will change CWD, which is why I resorted to changing it back. I guess the most robust way would be to handle this in Csound code. There is a reserved channel call CSD_PATH that will return the location of the current csd file. This could be used to create the correct paths to other assets. It might mean a bit of a rewriting in Lore though..

from cabbage.

TartanLlama avatar TartanLlama commented on July 30, 2024

Yeah, that's what I ended up doing, was just a couple lines!

from cabbage.

rorywalsh avatar rorywalsh commented on July 30, 2024

This has been addressed. Cabbage no longer sets CWD

from cabbage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.