remove debugs
This commit is contained in:
4
files.py
4
files.py
@@ -344,13 +344,9 @@ def custom_static(filename):
|
||||
################################################################################
|
||||
@app.template_filter('TopLevelFolderOf')
|
||||
def _jinja2_filter_toplevelfolderof(path, cwd):
|
||||
print( f"TopLevelFolderOf( {path}, {cwd} -- dirname={os.path.dirname(path)}" )
|
||||
|
||||
if os.path.dirname(path) == cwd:
|
||||
print("---TopLevelFolderOf is true")
|
||||
return True
|
||||
else:
|
||||
print("---TopLevelFolderOf is false")
|
||||
return False
|
||||
|
||||
###############################################################################
|
||||
|
||||
Reference in New Issue
Block a user