300 if self.__pyvenv: |
300 if self.__pyvenv: |
301 basename = "create_pyvenv" |
301 basename = "create_pyvenv" |
302 else: |
302 else: |
303 basename = "create_virtualenv" |
303 basename = "create_virtualenv" |
304 if isWindowsPlatform(): |
304 if isWindowsPlatform(): |
305 script = os.path.join(self.__targetDir, basename + ".bat") |
305 script = os.path.join(self.__targetDir, basename + ".cmd") |
306 txt = self.__cmd |
306 txt = self.__cmd |
307 else: |
307 else: |
308 script = os.path.join(self.__targetDir, basename + ".sh") |
308 script = os.path.join(self.__targetDir, basename + ".sh") |
309 txt = "#!/usr/bin/env sh\n\n" + self.__cmd |
309 txt = "#!/usr/bin/env sh\n\n" + self.__cmd |
310 |
310 |