Example #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;
 }
Example #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");
        }
Example #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;
        }
Example #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");
        }
Example #5
0
 public CookiecutterClient(CookiecutterPythonInterpreter interpreter)
 {
     _interpreter = interpreter;
 }