14 a program to manage file transfers between a computer and a collection
17 Copyright (C) 2010 Georges Khaznadar <georgesk@ofset.org>
19 This program is free software: you can redistribute it and/or modify
20 it under the terms of the GNU General Public License as published by
21 the Free Software Foundation, either version 3 of the License, or
22 (at your option) any later version.
24 This program is distributed in the hope that it will be useful,
25 but WITHOUT ANY WARRANTY; without even the implied warranty of
26 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 GNU General Public License for more details.
29 You should have received a copy of the GNU General Public License
30 along with this program. If not, see <http://www.gnu.org/licenses/>.
37 if platform.system()==
"Linux":
38 userShareDir=
"~/.scolasync"
39 logFileName=
"~/.scolasync/scolasync.log"
40 markFileName=
"~/.scolasync/marques.py"
41 elif platform.system()==
"Windows":
54 if os.path.isdir(d):
return d
64 return firstdir([
"/usr/share/scolasync/lang",
"lang"])
66 return firstdir([
"/usr/share/scolasync/help",
"help"])
68 return firstdir([
"/usr/share/scolasync/",
"share"])
def firstdir
Renvoie le premier répertoire existant d'une liste de propositions.