Lines Matching full:executable
288 # start a real new process. Also, the executable name must match
290 # deliberately with argv[0]. The actual Python executable is
292 # sys.executable later.
299 executable = os.path.join(execdir, "%(executable)s")
318 os.environ["PYTHONEXECUTABLE"] = executable
321 os.execve(executable, sys.argv, os.environ)
361 # platform, name of the subfolder of Contents that contains the executable.
365 # executable in the bundle will be a small wrapper that invokes
369 # The main executable. If a Python main program is specified
370 # the executable will be copied to Resources and be invoked
372 # simply be used as the main executable.
373 executable = None
383 # Symlink the executable instead of copying it.
392 # If set, use this for #! lines in stead of sys.executable
425 if self.mainprogram is None and self.executable is None:
427 "'executable' and 'mainprogram'")
435 elif self.executable is not None:
436 self.name = os.path.splitext(os.path.basename(self.executable))[0]
440 if self.executable is None:
444 self.executable = self.python
446 self.executable = sys.executable
465 if self.executable is not None:
469 execname = os.path.basename(self.executable)
472 self.files.append((self.destroot + self.executable, execpath))
500 executable = os.path.basename(self.executable)
511 hashbang = os.path.realpath(sys.executable)
529 if self.symlink_exec and self.executable:
530 self.message("Symlinking executable %s to %s" % (self.executable,
534 os.symlink(os.path.abspath(self.executable), dst)
812 -e, --executable=FILE the executable to be used
824 --link-exec symlink the executable instead of copying it
854 longopts = ("builddir=", "name=", "resource=", "file=", "executable=",
880 elif opt in ('-e', '--executable'):
881 builder.executable = arg