Skip to content

Commit

Permalink
fix: Fix path to VERSION (1362df7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Jul 16, 2024
1 parent e40d276 commit f1cef60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapyd/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')]
Expand Down

0 comments on commit f1cef60

Please sign in to comment.