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)