@@ -41,12 +41,6 @@ def finalize_options(self):
41
41
pass
42
42
43
43
def run (self ):
44
-
45
- # Windows lacks Unix functionality
46
- if sys .platform .startswith ("win" ):
47
- print ("Sorry, but creating paths on Windows is currently not supported." )
48
- sys .exit (1 )
49
-
50
44
# set to user-supplied path is available
51
45
if self .basepath != None :
52
46
drqueue_root = self .basepath
@@ -96,13 +90,15 @@ def run(self):
96
90
for template in glob .glob (templates ):
97
91
shutil .copy (template , drqueue_etc )
98
92
99
- # set to user-supplied user / group
100
- if self .owner != None :
101
- uid = pwd .getpwnam (self .owner )[2 ]
102
- recursive_chown (drqueue_root , uid , - 1 )
103
- if self .group != None :
104
- gid = grp .getgrnam (self .group )[2 ]
105
- recursive_chown (drqueue_root , - 1 , gid )
93
+ # Windows lacks Unix functionality
94
+ if not sys .platform .startswith ("win" ):
95
+ # set to user-supplied user / group
96
+ if self .owner != None :
97
+ uid = pwd .getpwnam (self .owner )[2 ]
98
+ recursive_chown (drqueue_root , uid , - 1 )
99
+ if self .group != None :
100
+ gid = grp .getgrnam (self .group )[2 ]
101
+ recursive_chown (drqueue_root , - 1 , gid )
106
102
107
103
print ("\n Add the following environment variables to your user profile:" )
108
104
print ("DRQUEUE_ROOT=" + drqueue_root )
0 commit comments