1.1 --- a/imiptools/filesys.py Mon Jan 30 23:23:30 2017 +0100
1.2 +++ b/imiptools/filesys.py Mon Jan 30 23:28:11 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Filesystem utilities.
1.6
1.7 -Copyright (C) 2014, 2015 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2014, 2015, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -20,11 +20,14 @@
1.13 """
1.14
1.15 import errno
1.16 -from imiptools.config import DEFAULT_PERMISSIONS, DEFAULT_DIR_PERMISSIONS
1.17 +from imiptools.config import settings
1.18 from os.path import abspath, commonprefix, exists, join, split
1.19 from os import chmod, getpid, makedirs, mkdir, rename, rmdir
1.20 from time import sleep, time
1.21
1.22 +DEFAULT_PERMISSIONS = settings["DEFAULT_PERMISSIONS"]
1.23 +DEFAULT_DIR_PERMISSIONS = settings["DEFAULT_DIR_PERMISSIONS"]
1.24 +
1.25 def check_dir(base, filename):
1.26
1.27 "Return whether 'base' contains 'filename'."