paracrawl / Domain_Adaptation

InDomain detection is a tool designed to extract in-domain data from a large collections of data.
GNU General Public License v3.0
1 stars 1 forks source link

Find scripts relative to self #1

Closed kpu closed 5 years ago

kpu commented 5 years ago

Rather than requiring user to specify a command line argument with the path to scripts, use __file__ to find itself, then other scripts relative to that.

dionwiggins commented 5 years ago

Addressed in latest code.

kpu commented 5 years ago

Requiring the user to have the code in the current working directory is not fully addressing this issue.
https://github.com/paracrawl/Domain_Adaptation/blob/master/lib/FullProcess.py#L79 https://stackoverflow.com/questions/4934806/how-can-i-find-scripts-directory-with-python/5475224#5475224

dalisola commented 5 years ago

Thank you for suggestion, i used file