bugfix
This commit is contained in:
parent
6b766496f1
commit
3382ffb1ba
10
ahserver/filetest.py
Normal file
10
ahserver/filetest.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
def current_fileno():
|
||||||
|
with open(__file__, 'r') as f:
|
||||||
|
return f.fileno()
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
for i in range(1000):
|
||||||
|
print(current_fileno())
|
||||||
|
|
@ -28,6 +28,7 @@ from sqlor.crud import CRUD
|
|||||||
from .xlsxData import XLSXData
|
from .xlsxData import XLSXData
|
||||||
from .uriop import URIOp
|
from .uriop import URIOp
|
||||||
from .error import Success, Error, NeedLogin, NoPermission
|
from .error import Success, Error, NeedLogin, NoPermission
|
||||||
|
from .filetest import current_fileno
|
||||||
|
|
||||||
from .serverenv import ServerEnv
|
from .serverenv import ServerEnv
|
||||||
|
|
||||||
@ -167,4 +168,4 @@ def initEnv():
|
|||||||
g.NeedLogin = NeedLogin
|
g.NeedLogin = NeedLogin
|
||||||
g.NoPermission = NoPermission
|
g.NoPermission = NoPermission
|
||||||
g.password_encode = password
|
g.password_encode = password
|
||||||
|
g.current_fileno = current_fileno
|
||||||
|
Loading…
Reference in New Issue
Block a user