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 3 years ago
Votes Newest

Answers 6


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

  
  
Posted 3 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 3 years ago

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

  
  
Posted 3 years ago

TightElk12 how is the launcher defined, exactly?

  
  
Posted 3 years ago

OK, I'll take a look 🙂

  
  
Posted 3 years ago

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 3 years ago
1K Views
6 Answers
3 years ago
one year ago
Tags