[Zope-Checkins] CVS: Zope/inst - do.py:1.8.50.1
Lennart Regebro
lennart@torped.se
Tue, 17 Dec 2002 09:51:57 -0500
Update of /cvs-repository/Zope/inst
In directory cvs.zope.org:/tmp/cvs-serv892/inst
Modified Files:
Tag: regebro-windows_path_fix-branch
do.py
Log Message:
Replaced os.system("chmod") calls with the portable os.chmod() so it works under windows.
=== Zope/inst/do.py 1.8 => 1.8.50.1 ===
--- Zope/inst/do.py:1.8 Wed Aug 14 17:17:32 2002
+++ Zope/inst/do.py Tue Dec 17 09:51:26 2002
@@ -42,13 +42,12 @@
def ch(path, user, group, mode=0600, quiet=0):
if group:
- mode=mode|060
do("chgrp %s %s" % (group, path), 0, quiet)
if user:
do("chown %s %s" % (user, path), 0, quiet)
- do("chmod %s %s" % (oct(mode), path), 0, quiet)
+ os.chmod(path, mode)
def make(*args):