Skip to content

Commit

Permalink
Fix write log file arguments on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbth committed Sep 20, 2018
1 parent effe592 commit 9fa3ece
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ clean:
@$(call HELPTEXT,$@)
rm -f $(LOGFILES)
rm -rf build
rm -rf __pycache__
# These should not remove files in .venv
#find . -type d -name __pycache__ -exec rm -rf {} \;
#find . -type f -name '*.pyc' -exec rm -f {} \;


Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Create your own virtual environment, install the local devevelopment environment
$ python3 -m venv .venv
$ alias activate='. .venv/bin/activate'
$ activate
$ make install test
$ make install-tools
$ make test
$ python3 main.py
$ deactivate
```
Expand Down
3 changes: 2 additions & 1 deletion marvin.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ def ircLogWriteToFile():
Write IRClog to file.
"""
with open(CONFIG["irclogfile"], 'w') as f:
json.dump(list(IRCLOG), f, False, False, False, False, indent=2)
#json.dump(list(IRCLOG), f, False, False, False, False, indent=2)
json.dump(list(IRCLOG), f, indent=2)


def readincoming():
Expand Down
3 changes: 1 addition & 2 deletions marvin_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ def getAllActions():


# Load all strings from file
with open("marvin_strings.json") as f:
with open("marvin_strings.json", encoding="utf-8") as f:
STRINGS = json.load(f)


# Configuration loaded
CONFIG = None

Expand Down

0 comments on commit 9fa3ece

Please sign in to comment.