diff --git a/crony/crony.py b/crony/crony.py index d41ee3a..bbc4931 100644 --- a/crony/crony.py +++ b/crony/crony.py @@ -12,7 +12,7 @@ import requests from raven.handlers.logging import SentryHandler -__version__ = '0.1.0' +__version__ = '0.1.1' class CommandCenter(object): @@ -138,9 +138,10 @@ def run(self): def setup_dir(self): """Change directory for script if necessary.""" - if self.opts.cd: - self.logger.debug(f'Adding cd to {self.opts.cd}') - self.cmd = f'cd {self.opts.cd} && {self.cmd}' + cd = self.opts.cd or self.config['crony'].get('directory') + if cd: + self.logger.debug(f'Adding cd to {cd}') + self.cmd = f'cd {cd} && {self.cmd}' def setup_logging(self): """Setup python logging handler.""" diff --git a/setup.py b/setup.py index aa473a4..15eaaa6 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ 'Topic :: Utilities' ], description='Python command line application bare bones template.', - download_url='https://github.com/youversion/crony/archive/0.1.0.zip', + download_url=f'https://github.com/youversion/crony/archive/{version}.zip', entry_points={'console_scripts': ['crony = crony.crony:main']}, license='MIT', long_description=long_descr,