Skip to content

Commit

Permalink
Move teamsecrets to cli
Browse files Browse the repository at this point in the history
  • Loading branch information
thotypous committed Jan 23, 2017
1 parent 4457faa commit af1faa6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
# our own stuff
/submissions
/local-settings.json
/team-secrets.json

# elm-make
/elm-stuff
Expand Down
2 changes: 1 addition & 1 deletion nizkctf/cli/team.py
Expand Up @@ -8,8 +8,8 @@
import pysodium
import base64
from . import log
from .teamsecrets import write_team_secrets
from ..team import Team
from ..teamsecrets import write_team_secrets
from ..subrepo import SubRepo


Expand Down
6 changes: 3 additions & 3 deletions nizkctf/teamsecrets.py → nizkctf/cli/teamsecrets.py
Expand Up @@ -2,8 +2,8 @@

from __future__ import unicode_literals
import os
from .serializable import SerializableDict
from .cli import log
from . import log
from ..serializable import SerializableDict


TEAMSECRETS_FILE = 'team-secrets.json'
Expand All @@ -12,7 +12,7 @@
class DefaultTeamSecrets(SerializableDict):
def path(self):
thisdir = os.path.dirname(os.path.realpath(__file__))
return os.path.join(thisdir, '..', TEAMSECRETS_FILE)
return os.path.join(thisdir, '..', '..', TEAMSECRETS_FILE)

@staticmethod
def _binary_field(k):
Expand Down

0 comments on commit af1faa6

Please sign in to comment.