当我在Visual Studio中运行项目时,//flask and python
path ='D:\Course Material\Semester ' + str(sem) //sem and branch are global var
c_mat = os.listdir(path)
print(c_mat)
#print("Subject chosen is " + sub)
sub = ''
for i in c_mat:
if i == sub:
print(i)
path = path + '/' + sub
print(path)
c_mat = os.listdir(path)
chk = 1
print(chk)
#redirect(url_for('home_student'))
break
return render_template('home_student.html', username=username, branch = branch, sem=sem, c_mat = c_mat, path = path)
可以正常工作,但是在Windows Server上进行部署时会出现错误:
无法加载DLL'Magick.NET-Q16-x86.Native.dll':找不到指定的模块。 (来自HRESULT的异常:0x8007007E)
完全例外:
Magick.NET v7.14.0.2