From f040199892f7e3a19954401207272a4da6e6e967 Mon Sep 17 00:00:00 2001 From: Lertsenem Date: Mon, 7 Dec 2015 18:24:29 +0100 Subject: [PATCH] Correction os.path.join() --- persoconf/commands/list.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/persoconf/commands/list.py b/persoconf/commands/list.py index c50487f..b5bb657 100644 --- a/persoconf/commands/list.py +++ b/persoconf/commands/list.py @@ -35,10 +35,10 @@ def run(args, persoconf, logger): # Print the files too if asked so if args.show_files: for f in app_list[app].files: - if os.path.isdir(persoconf.path + "/" + app + "/" + f): + if os.path.isdir( os.path.join(persoconf.path, app, f) ): print("\t%s/" % f) else: - print("\t%s" % f) + print("\t%s" % f) # Some apps were specified, so we list them with their files else: @@ -55,4 +55,4 @@ def run(args, persoconf, logger): if os.path.isdir(persoconf.path + "/" + app + "/" + f): print("\t%s/" % f) else: - print("\t%s" % f) + print("\t%s" % f)