Skip to content

Commit

Permalink
Using os.path.dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-at-github committed Dec 4, 2016
1 parent 6a99921 commit a9c8179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/writer.py
Expand Up @@ -35,7 +35,7 @@ def sorted_events(self):
old_wd = os.getcwd()
os.chdir('data')
for path in glob.iglob('**/category.json'):
directory = os.path.split(path)[0]
directory = os.path.dirname(path)
command = "git log --diff-filter=A --follow --format=%ai -1 --".split()
command.append(path)
output = subprocess.check_output(
Expand Down

0 comments on commit a9c8179

Please sign in to comment.