diff --git a/scrapyd/__main__.py b/scrapyd/__main__.py index 4f846b06..3cee19b9 100755 --- a/scrapyd/__main__.py +++ b/scrapyd/__main__.py @@ -26,7 +26,7 @@ def getUsage(self, width=None): def main(): if len(sys.argv) > 1 and '-v' in sys.argv[1:] or '--version' in sys.argv[1:]: - __version__ = pkgutil.get_data(__package__, '../VERSION').decode('ascii').strip() + __version__ = pkgutil.get_data(__package__, 'VERSION').decode('ascii').strip() print(f'Scrapyd {__version__}') else: sys.argv[1:1] = ['-n', '-y', join(dirname(scrapyd.__file__), 'txapp.py')]