Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Hi, I Am Running A Script From A Git Repository. In The Repository There Is A Package That I Wrote And I Would Like The Script That I Am Running To Be Able To Import It, Thus I Need To Add The Package Path To Python Path. Repo Structure:

Hi, I am running a script from a git repository.
in the repository there is a package that i wrote and i would like the script that i am running to be able to import it, thus I need to add the package path to python path.
repo structure:

|- my repo
      |- my package
      |- scripts
            |- my script

how can I make the agent add the path to the package (which is inside the repo that is downloaded)?
the simplest solution is to add the following lines to the script:

import sys

is there another solution to achieve the same result?

Posted 9 months ago
Votes Newest

Answers 2

Hi @<1594863230964994048:profile|DangerousBee35> ! This looks like an ok solution, but I would make the package pip-installable and push it to another repo, then add that repo to a requirements file such that the agent can install it. Other than that, I can’t really think of another easy way to use your package

Posted 9 months ago

It seems that when the working directory is set to '.' (root of the cloned repo) I am able to import my package as expected.
I thought about your solution but then it requires me to push every time I change my package which is inconvenient.

Posted 9 months ago
2 Answers
9 months ago
9 months ago
Similar posts