Giter Site home page Giter Site logo

Comments (3)

agnostic-apollo avatar agnostic-apollo commented on July 24, 2024

Which version are you using?

Symlink file path is used instead of target path because some utils don't work if target path is used. Will have to add another option to disable the behaviour. I don't really understand your setup from the info provided to suggest alternatives.

https://github.com/termux/termux-tasker/blob/v0.6.0/app/src/main/java/com/termux/tasker/FireReceiver.java#L156

termux/termux-app@cce6dfe

from termux-tasker.

masasin avatar masasin commented on July 24, 2024

I'm using 0.6.0.

This is my setup:

Screenshot_20220827-150102_TermuxTasker.jpg

I have python installed system-wide, and I created a venv folder for tasker stuff because I don't want to install e.g. numpy or arrow globally.

If I run it directly (e.g., with -c "print('hello world')"), it does not have access to any of the packages in the venv. If I run it on a file, it's the same problem.

What I ended up doing is this:

Screenshot_20220827-150509_Tasker.jpg

Right before running anything, I add the venv path to the sys path.

Screenshot_20220827-150524_Tasker.jpg

Adding the toggle would make it possible to simplify things by allowing me to run certain things directly, but it works fine in this configuration too, so there's no rush for me.

from termux-tasker.

agnostic-apollo avatar agnostic-apollo commented on July 24, 2024

Why not just create wrapper script at ~/.termux/tasker/venv-exec and call that with plugin.

#!/usr/bin/bash

exec env VIRTUAL_ENV=~/.termux/tasker/venv python "$@"

https://stackoverflow.com/questions/48174599/is-there-a-single-line-way-to-run-a-command-in-a-python-venv

p.s I don't have any experience with python virtual environments.

from termux-tasker.

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.