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