コード例 #1
0
 def activate_command_unix(self):
     scripts = relpath(path.dirname(self.python), self.directory)
     activate = 'source %s' % path.join(scripts, 'activate')
     deactivate = 'deactivate'
     run_command = 'bash run'
     run_file = 'run'
     shebang = '#!/bin/sh'
     self.activate_command(activate, deactivate, run_command, run_file,
                           shebang)
コード例 #2
0
 def activate_command_unix(self):
     scripts = relpath(path.dirname(self.python), self.directory)
     activate = 'source %s' % path.join(scripts, 'activate')
     deactivate = 'deactivate'
     run_command = 'bash run'
     run_file = 'run'
     shebang = '#!/bin/sh'
     self.activate_command(activate, deactivate,
         run_command, run_file, shebang)
コード例 #3
0
 def activate_command_win(self):
     scripts = relpath(path.dirname(self.python), self.directory)
     activate = 'call %s' % path.join(scripts, 'activate.bat')
     deactivate = 'call deactivate.bat'
     run_command = 'run.bat'
     run_file = 'run.bat'
     shebang = '@echo off'
     out_filter = lambda x: x.lower()
     self.activate_command(activate, deactivate, run_command, run_file,
                           shebang, out_filter)
コード例 #4
0
 def activate_command_win(self):
     scripts = relpath(path.dirname(self.python), self.directory)
     activate = 'call %s' % path.join(scripts, 'activate.bat')
     deactivate = 'call deactivate.bat'
     run_command = 'run.bat'
     run_file = 'run.bat'
     shebang = '@echo off'
     out_filter = lambda x: x.lower()
     self.activate_command(activate, deactivate,
         run_command, run_file, shebang, out_filter)