mirror of
				https://github.com/yweber/lodel2.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	Bugfix in MONOSITE mode
This commit is contained in:
		
					parent
					
						
							
								d98ee8e404
							
						
					
				
			
			
				commit
				
					
						6fc931f52e
					
				
			
		
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -27,7 +27,7 @@ doc_graphviz: | |||
| 
 | ||||
| do_subst = sed -e 's,\[@\]INSTALLMODEL_DIR\[@\],$(install_model_dir),g'  | ||||
| 
 | ||||
| runtest: runtest.sh | ||||
| runtest: ./runtest.sh | ||||
| 	$(do_subst) < $(srcdir)/runtest.sh > runtest | ||||
| 	chmod +x runtest | ||||
| 
 | ||||
|  |  | |||
|  | @ -123,6 +123,7 @@ site_id set to None when we are in MULTISITE beahavior") | |||
|                 self.__class__._current = self.__class__._contexts = self | ||||
|                 self.__pkg_name = 'lodel' | ||||
|                 self.__package = lodel | ||||
|                 self.__instance_path = os.getcwd() | ||||
|                 return | ||||
|         else: | ||||
|             #Multisite instanciation | ||||
|  | @ -145,6 +146,7 @@ instance path") | |||
|                 """ | ||||
|                 warnings.warn("It can be a really BAD idea to create a \ | ||||
| a context without a path......") | ||||
|                 self.__instance_path = None | ||||
|             else: | ||||
|                 self.__instance_path = os.path.realpath(instance_path) | ||||
|             #Importing the site package to trigger its creation | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yann
				Yann