summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-07-06 08:50:24 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-07-06 08:50:54 +0200
commitdce32791ff5c74cb81ee5d3401b3fe1734efa8d4 (patch)
treed59691f3f5bf15a2518fc1974717b23cedb59dd7
parent11f4d323d88e06c632ff29923d50a77deeb85e34 (diff)
Fix creation of config dir
FBClient.makedirs already determines the dirname itself. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xfb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb.py b/fb.py
index 85dd375..6a36741 100755
--- a/fb.py
+++ b/fb.py
@@ -794,7 +794,7 @@ class FBClient:
raise
- self.makedirs(os.path.dirname(self.config['apikey_file']))
+ self.makedirs(self.config['apikey_file'])
with open(self.config['apikey_file'], 'w') as outfile:
outfile.write(resp['new_key'])