aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAndreas Bergmeier <abergmeier@gmx.net>2014-04-03 15:44:19 +0200
committerAndreas Bergmeier <abergmeier@gmx.net>2014-04-03 15:44:19 +0200
commit7bcb4e0be286440310f95fcfc2275ab59d5f9288 (patch)
tree66eb9329f9d018abd6febad5b44199d45b1d4ec5 /emcc
parent5d3c5f80ff76a53ef46b4d7ba9b8ce626b88b37c (diff)
Apply requested formatting changes.
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc8
1 files changed, 4 insertions, 4 deletions
diff --git a/emcc b/emcc
index 135fbfde..45df432d 100755
--- a/emcc
+++ b/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'