fix(rv): fixed handling of RV_HOME

This commit is contained in:
antirotor 2019-04-10 22:20:08 +02:00
parent ed4feae385
commit e86da58990
No known key found for this signature in database
GPG key ID: 8A29C663C672C2B7

View file

@ -33,7 +33,11 @@ class RVAction(BaseAction):
# RV_HOME should be set if properly installed
if os.environ.get('RV_HOME'):
self.rv_path = os.environ.get('RV_HOME')
self.rv_path = os.path.join(
os.environ.get('RV_HOME'),
'bin',
'rv'
)
else:
# if not, fallback to config file location
self.load_config_data()