changeset 7:09afbcd3efcb draft

fix previous commit Signed-off-by: Changaco <changaco ατ changaco δοτ net>
author Changaco <changaco ατ changaco δοτ net>
date Mon, 16 Apr 2012 00:47:28 +0200
parents 455cd8c78862
children 89a371120463
files feed-push
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/feed-push
+++ b/feed-push
@@ -20,7 +20,7 @@ from   functools  import partial, reduce
 from   glob       import glob
 import json
 import os
-from   os.path    import abspath
+from   os.path    import abspath, dirname, isdir
 import shlex
 from   subprocess import Popen, PIPE, STDOUT
 import sys
@@ -218,8 +218,8 @@ class Apply(argparse.Action):
 
 def MakeDirs(next_type=None):
     def f(s):
-        d = os.dirname(s)
-        if not os.isdir(d):
+        d = dirname(s)
+        if not isdir(d):
             try:
                 os.makedirs(d)
             except OSError as e: