Apply requested formatting changes.

This commit is contained in:
Andreas Bergmeier 2014-04-03 15:44:19 +02:00
Родитель 5d3c5f80ff
Коммит 7bcb4e0be2
1 изменённых файлов: 4 добавлений и 4 удалений

8
emcc
Просмотреть файл

@ -751,13 +751,13 @@ else:
def in_temp(name):
return os.path.join(temp_dir, os.path.basename(name))
def in_directory( root, child ):
#make both absolute
def in_directory(root, child):
# make both path absolute
root = os.path.realpath(root)
child = os.path.realpath(child)
#return true, if the common prefix of both is equal to directory
#e.g. /a/b/c/d.rst and directory is /a/b, the common prefix is /a/b
# return true, if the common prefix of both is equal to directory
# e.g. /a/b/c/d.rst and directory is /a/b, the common prefix is /a/b
return os.path.commonprefix([root, child]) == root
# Parses the essential suffix of a filename, discarding Unix-style version numbers in the name. For example for 'libz.so.1.2.8' returns '.so'