-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shebang lines in scripts/oldump.py and scripts/sitemaps/sitemaps.…
…py (#6163) * Fix shebang line of scripts/oldump.py * oldump.sh: Leverage the shebang lines in oldump.py * Fix shebang lines of scripts oldump.py and sitemap.py * oldump.py: Print Python version * oldump.sh: Use pyenv's Python 3.9.4
- Loading branch information
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
#! /usr/bin/env python | ||
#! /usr/bin/env python3 | ||
|
||
import sys | ||
|
||
import _init_path | ||
from openlibrary.data import dump | ||
|
||
|
||
if __name__ == "__main__": | ||
import sys | ||
print("{}: Python {}.{}.{}".format(__file__, *sys.version_info)) | ||
|
||
from openlibrary.data import dump | ||
|
||
dump.main(sys.argv[1], sys.argv[2:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#! /usr/bin/env python3 | ||
"""Script to generate XML sitemap of openlibrary.org website. | ||
USAGE: | ||
|