FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixed script fails if not installed from pip by einsteinx2 · Pull Request #142 · josegonzalez/python-github-backup · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension No extension  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
8 changes: 6 additions & 2 deletions bin/github-backup
This file contains hidden or 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
Expand Up @@ -41,7 +41,11 @@ except ImportError:
from urllib2 import HTTPRedirectHandler
from urllib2 import build_opener

from github_backup import __version__
try:
from github_backup import __version__
VERSION = __version__
except ImportError:
VERSION = 'unknown'

FNULL = open(os.devnull, 'w')

Expand Down Expand Up @@ -302,7 +306,7 @@ def parse_args():
help='Clone repositories using SSH instead of HTTPS')
parser.add_argument('-v', '--version',
action='version',
version='%(prog)s ' + __version__)
version='%(prog)s ' + VERSION)
parser.add_argument('--keychain-name',
dest='osx_keychain_item_name',
help='OSX ONLY: name field of password item in OSX keychain that holds the personal access or OAuth token')
Expand Down

Back | FazBrowse Home | New Git URL