Git Product home page Git Product logo

Comments (4)

MonkeyChap avatar MonkeyChap commented on August 12, 2024

Should have looked at the source code first ! There's an if statement in there detecting Darwin. I just commented it out in my local copy, and it fixed the path in Ubuntu.

[didn't fix the error I was getting though, so something else broken too].

from fix-path.

MonkeyChap avatar MonkeyChap commented on August 12, 2024

Had to revisit this today. Seems Linux does have the same problem as Darwin. Could you add me to the contributors so I can alter the code to run the fix for Linux too ?

Or failing that, could you change the if statement to:

if ((process.platform !== 'darwin') && (process.platform !== 'linux')){
		return;
	}

Ian

from fix-path.

kevva avatar kevva commented on August 12, 2024

In what type of application are you using this?

from fix-path.

MonkeyChap avatar MonkeyChap commented on August 12, 2024

It's an electron app that runs a python script. The script won't show up in the packaged app under Linux and Darwin unless I run fix-path. It's not a huge problem to adapt it locally if you want to keep it mac-only on github. I could even just do a manual path fix.

from fix-path.

Related Issues (14)

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.