mirror of
				https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
				synced 2025-11-04 03:55:05 +00:00 
			
		
		
		
	fix styles.csv filename
This commit is contained in:
		
							parent
							
								
									23a0e60b9b
								
							
						
					
					
						commit
						8b74389e76
					
				@ -98,10 +98,8 @@ class StyleDatabase:
 | 
			
		||||
        self.path = path
 | 
			
		||||
 | 
			
		||||
        folder, file = os.path.split(self.path)
 | 
			
		||||
        self.default_file = file.split("*")[0] + ".csv"
 | 
			
		||||
        if self.default_file == ".csv":
 | 
			
		||||
            self.default_file = "styles.csv"
 | 
			
		||||
        self.default_path = os.path.join(folder, self.default_file)
 | 
			
		||||
        filename, _, ext = file.partition('*')
 | 
			
		||||
        self.default_path = os.path.join(folder, filename + ext)
 | 
			
		||||
 | 
			
		||||
        self.prompt_fields = [field for field in PromptStyle._fields if field != "path"]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user