feat(rv): tweaked how path to rv is handled

This commit is contained in:
antirotor 2019-04-10 11:33:14 +02:00
parent ee3f9571ca
commit 0e9ce8010a
No known key found for this signature in database
GPG key ID: 8A29C663C672C2B7

View file

@ -71,10 +71,7 @@ class RVAction(BaseAction):
self.config_data = data
def set_rv_path(self):
for path in self.config_data.get("rv_paths", []):
if os.path.exists(path):
self.rv_path = path
break
self.rv_path = self.config_data.get("rv_path")
def register(self):
assert (self.rv_path is not None), (