Try this version of symlink creation
This commit is contained in:
@@ -94,8 +94,13 @@ def photos():
|
|||||||
p = p.replace('/', '\\')
|
p = p.replace('/', '\\')
|
||||||
if( os.path.exists( p ) ):
|
if( os.path.exists( p ) ):
|
||||||
view_path = p
|
view_path = p
|
||||||
print(os.path.basename(p))
|
if os.path.exists( p ):
|
||||||
#os.symlink('\\static\\BOLLOCKS', p)
|
if p.startswith('c:'):
|
||||||
|
symlink = 'static\\{}'.format( os.path.basename(p[0:-1]))
|
||||||
|
else:
|
||||||
|
symlink = 'static/{}'.format( os.path.basename(p[0:-1]))
|
||||||
|
if not os.path.exists(symlink):
|
||||||
|
os.symlink(p, symlink)
|
||||||
file_list.append(glob.glob(view_path + '**', recursive=True))
|
file_list.append(glob.glob(view_path + '**', recursive=True))
|
||||||
for file in file_list[0]:
|
for file in file_list[0]:
|
||||||
fthumbnail = None
|
fthumbnail = None
|
||||||
|
|||||||
Reference in New Issue
Block a user