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
Answered
I'M Looking Into A Way To Hint Git Repository Location As I'M Using A Launcher To Start Python Script. Currently The Dashboard Shows Some Unrelated Uncommited Changes From

I'm looking into a way to hint git repository location as I'm using a launcher to start python script. Currently the dashboard shows some unrelated uncommited changes from
/opt/conda/envs/<env-name>/bin/

  
  
Posted 2 years ago
Votes Newest

Answers 6


If using the launcher as is -> Can not detect the repository:
launcher argsbut if execute the launcher as a module -> repository is detected
python -m launcher argsIt would be nice to avoid writing "python -m" everytime...

  
  
Posted 2 years ago

Patching sys.argv[0] = __file__ where __file__ is the file where Task.init happens helps with git repo discovery.

  
  
Posted 2 years ago

TightElk12 how is the launcher defined, exactly?

  
  
Posted 2 years ago

OK, I'll take a look 🙂

  
  
Posted 2 years ago

It's code is like that
` (env-name) /code# cat /opt/conda/envs/env-name/bin/doit `` #!/opt/conda/envs/env-name/bin/python

-- coding: utf-8 --

import re
import sys

from doit.main import main

if name == 'main':
sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0])
sys.exit(main()) `

  
  
Posted 2 years ago

It is python doit: https://pydoit.org/

  
  
Posted 2 years ago
526 Views
6 Answers
2 years ago
one year ago
Tags