Skip to content

Rough fix for keychain and MacOS #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions code/MyPyTutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
from argparse import ArgumentParser

ALLOWED_VERSIONS = [(3,6)] #[(3, 5), (3, 4)]
ALLOWED_VERSIONS = [(3, 6)] # [(3, 5), (3, 4)]

if sys.version_info.major == 3:
from getpass import getpass
Expand All @@ -16,7 +16,7 @@

DEFAULT_CONFIG = {
'online': {
'store_credentials': True,
'store_credentials': False,
'username': '',
},
'tutorials': {
Expand Down Expand Up @@ -726,11 +726,14 @@ def main():
update_default_tutorial_package(force_update=args.force_update_tutorials)

# try to log the user in automatically
"""
username, password = try_get_credentials()
if username is not None:
web_api = try_login(username, password)
else:
web_api = None
"""
web_api = None

if web_api is not None:
synchronise_problems(web_api)
Expand Down
3 changes: 3 additions & 0 deletions code/tutorlib/config/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ def load_config():
} for section, options in cfg_dict.items()
}

# Overwrite the store credentials
cfg_dict['online']['store_credentials'] = False

return Namespace(**cfg_dict)


Expand Down