示例#1
0
 public CookiecutterClient(CookiecutterPythonInterpreter interpreter, Redirector redirector) {
     _interpreter = interpreter;
     var localAppDataFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
     _envFolderPath = Path.Combine(localAppDataFolderPath, "Microsoft", "CookiecutterTools", "env");
     _envInterpreterPath = Path.Combine(_envFolderPath, "scripts", "python.exe");
     _redirector = redirector;
 }
示例#2
0
        public CookiecutterClient(CookiecutterPythonInterpreter interpreter)
        {
            _interpreter = interpreter;
            var localAppDataFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

            _envFolderPath      = Path.Combine(localAppDataFolderPath, "Microsoft", "CookiecutterTools", "env");
            _envInterpreterPath = Path.Combine(_envFolderPath, "scripts", "python.exe");
        }
示例#3
0
        public CookiecutterClient(IServiceProvider provider, CookiecutterPythonInterpreter interpreter, Redirector redirector)
        {
            _provider    = provider;
            _interpreter = interpreter;
            var localAppDataFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

            _envFolderPath      = Path.Combine(localAppDataFolderPath, "Microsoft", "CookiecutterTools", "env");
            _envInterpreterPath = Path.Combine(_envFolderPath, "scripts", "python.exe");
            _redirector         = redirector;
        }
示例#4
0
        public CookiecutterClient(IServiceProvider provider, CookiecutterPythonInterpreter interpreter, Redirector redirector)
        {
            _provider    = provider;
            _interpreter = interpreter;
            var localAppDataFolderPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

            _redirector = redirector;

            // This is where the env *should* be created, but not necessarily where it will live on disk.
            // See the GetRealPath function for more details
            _expectedEnvFolderPath = Path.Combine(localAppDataFolderPath, "Microsoft", "CookiecutterTools", "env");
        }
示例#5
0
 public CookiecutterClient(CookiecutterPythonInterpreter interpreter)
 {
     _interpreter = interpreter;
 }