mirror of
				https://github.com/arsenetar/dupeguru.git
				synced 2025-09-11 17:58:17 +00:00 
			
		
		
		
	[#8] Changed the appdata base path (and PE's)
--HG-- extra : convert_revision : svn%3Ac306627e-7827-47d3-bdf0-9a457c9553a1/trunk%40158
This commit is contained in:
		
							parent
							
								
									0c1854e02a
								
							
						
					
					
						commit
						f792d959e2
					
				| @ -7,6 +7,7 @@ | |||||||
| # which should be included with this package. The terms are also available at  | # which should be included with this package. The terms are also available at  | ||||||
| # http://www.hardcoded.net/licenses/hs_license | # http://www.hardcoded.net/licenses/hs_license | ||||||
| 
 | 
 | ||||||
|  | from Foundation import * | ||||||
| from AppKit import * | from AppKit import * | ||||||
| import logging | import logging | ||||||
| import os.path as op | import os.path as op | ||||||
| @ -44,7 +45,8 @@ class DupeGuru(app.DupeGuru): | |||||||
|         install_exception_hook() |         install_exception_hook() | ||||||
|         if data_module is None: |         if data_module is None: | ||||||
|             data_module = data |             data_module = data | ||||||
|         appdata = op.expanduser(op.join('~', '.hsoftdata', appdata_subdir)) |         appsupport = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, True)[0] | ||||||
|  |         appdata = op.join(appsupport, appdata_subdir) | ||||||
|         app.DupeGuru.__init__(self, data_module, appdata, appid) |         app.DupeGuru.__init__(self, data_module, appdata, appid) | ||||||
|         self.progress = cocoa.ThreadedJobPerformer() |         self.progress = cocoa.ThreadedJobPerformer() | ||||||
|         self.display_delta_values = False |         self.display_delta_values = False | ||||||
|  | |||||||
| @ -125,7 +125,7 @@ class IPhotoLibrary(fs.Directory): | |||||||
| 
 | 
 | ||||||
| class DupeGuruPE(app_cocoa.DupeGuru): | class DupeGuruPE(app_cocoa.DupeGuru): | ||||||
|     def __init__(self): |     def __init__(self): | ||||||
|         app_cocoa.DupeGuru.__init__(self, data, 'dupeguru_pe', appid=5) |         app_cocoa.DupeGuru.__init__(self, data, 'dupeGuru Picture Edition', appid=5) | ||||||
|         self.scanner.match_factory = matchbase.AsyncMatchFactory() |         self.scanner.match_factory = matchbase.AsyncMatchFactory() | ||||||
|         self.directories.dirclass = Directory |         self.directories.dirclass = Directory | ||||||
|         self.directories.special_dirclasses[Path('iPhoto Library')] = lambda _, __: self._create_iphoto_library() |         self.directories.special_dirclasses[Path('iPhoto Library')] = lambda _, __: self._create_iphoto_library() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user