Correction

os.path.join()
master
Lertsenem 2015-12-07 18:24:29 +01:00
parent e32b5bd336
commit f040199892
1 changed files with 3 additions and 3 deletions

View File

@ -35,10 +35,10 @@ def run(args, persoconf, logger):
# Print the files too if asked so # Print the files too if asked so
if args.show_files: if args.show_files:
for f in app_list[app].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) print("\t%s/" % f)
else: else:
print("\t%s" % f) print("\t%s" % f)
# Some apps were specified, so we list them with their files # Some apps were specified, so we list them with their files
else: else:
@ -55,4 +55,4 @@ def run(args, persoconf, logger):
if os.path.isdir(persoconf.path + "/" + app + "/" + f): if os.path.isdir(persoconf.path + "/" + app + "/" + f):
print("\t%s/" % f) print("\t%s/" % f)
else: else:
print("\t%s" % f) print("\t%s" % f)