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