you can't os.chdir in web2py. first it's not threadsafe. second, you screw up all web2py relative imports.
BTW: httpserver.log is put on the same folder web2py.py is, unless you are using the -f parameter, in which case it sits in that directory, which is the one containing the "applications" folder. On Monday, January 11, 2016 at 4:06:38 PM UTC+1, Yebach wrote: > > Hello > > I have a strange behavior of my log file, or better to say the location of > my log file. > > If I understand correctly httpserver.log file is usually located in > application folder. > > When I have to run the engine the following code is executed > > path = applications/applicationName/engine/e1 > count = 0 > while ( count < 10 and ( os.path.isfile(outPath))): > count += 1 > os.remove(outPath) > time.sleep(0.05) > > # Run woshi engine > path_1 = os.path.join(path, 'e1') > os.chdir(path_1) > > p = subprocess.Popen(['woshi_engine.exe', scriptId], shell=True, > stdout = subprocess.PIPE) > > After that the httpserver.log file is created in folder > applications/applicationName/engine/e1 and stays there > > Now if I run my second application in folder applications (like production > version) this file is moved to the engine folder of that applicatio > > How can I set the default location of httpserver.log file and that the > file is not moved? > > Thank you > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.