projects
/
findit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
startpath by platform
[findit]
/
src
/
findit.py
diff --git
a/src/findit.py
b/src/findit.py
index
d1f40d7
..
5e0d196
100755
(executable)
--- a/
src/findit.py
+++ b/
src/findit.py
@@
-7,10
+7,11
@@
import gobject
import pango
from os import walk
from os.path import join, abspath, normcase, basename, \
import pango
from os import walk
from os.path import join, abspath, normcase, basename, \
- isdir, getsize, getatime, getmtime
+ isdir, getsize, getatime, getmtime, expanduser
from heapq import nlargest
import gettext
import time
from heapq import nlargest
import gettext
import time
+from sys import platform
try: import hildon; hildonFound = True
except: hildonFound = False
try: import hildon; hildonFound = True
except: hildonFound = False
@@
-327,6
+328,11
@@
class MainWindow(gtk.Window):
if __name__ == '__main__':
gobject.set_application_name( _('FindIT') )
if __name__ == '__main__':
gobject.set_application_name( _('FindIT') )
- app = MainWindow(575, 345, '/home')
- app.run()
+ if platform == 'win32':
+ startpath = 'c:\\'
+ else:
+ startpath = expanduser('~')
+
+ app = MainWindow(575, 345, startpath)
+ app.run()