Create an instance dir and write journal files into it.
This commit is contained in:
		
							parent
							
								
									5c60364755
								
							
						
					
					
						commit
						dae3ebe8d1
					
				| @ -689,7 +689,7 @@ class Activity(Window, gtk.Container): | ||||
|             if self._jobject.file_path: | ||||
|                 self.write_file(self._jobject.file_path) | ||||
|             else: | ||||
|                 file_path = os.path.join(self.get_activity_root(), 'data', | ||||
|                 file_path = os.path.join(self.get_activity_root(), 'instance', | ||||
|                                          '%i' % time.time()) | ||||
|                 self.write_file(file_path) | ||||
|                 self._owns_file = True | ||||
|  | ||||
| @ -82,6 +82,10 @@ def get_environment(activity): | ||||
|     if not os.path.exists(activity_root): | ||||
|         os.mkdir(activity_root) | ||||
| 
 | ||||
|     data_dir = os.path.join(activity_root, 'instance') | ||||
|     if not os.path.exists(data_dir): | ||||
|         os.mkdir(data_dir) | ||||
| 
 | ||||
|     data_dir = os.path.join(activity_root, 'data') | ||||
|     if not os.path.exists(data_dir): | ||||
|         os.mkdir(data_dir) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marco Pesenti Gritti
						Marco Pesenti Gritti