File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 77#include < Windows.h>
88#include < shellapi.h>
99
10- #ifdef PYTHON_UWP_SUPPORTED
1110#include < winrt\Windows.ApplicationModel.h>
1211#include < winrt\Windows.Storage.h>
13- #else
14- #include < string>
15- #endif
1612
1713#ifdef PYTHONW
1814#ifdef _DEBUG
@@ -31,7 +27,6 @@ const wchar_t *PROGNAME = L"python.exe";
3127static void
3228set_user_base ()
3329{
34- #ifdef PYTHON_UWP_SUPPORTED
3530 wchar_t envBuffer[2048 ];
3631 try {
3732 const auto appData = winrt::Windows::Storage::ApplicationData::Current ();
@@ -49,17 +44,12 @@ set_user_base()
4944 }
5045 } catch (...) {
5146 }
52- #endif
5347}
5448
5549static const wchar_t *
5650get_argv0 (const wchar_t *argv0)
5751{
58- #ifdef PYTHON_UWP_SUPPORTED
5952 winrt::hstring installPath;
60- #else
61- std::wstring installPath;
62- #endif
6353 const wchar_t *launcherPath;
6454 wchar_t *buffer;
6555 size_t len;
@@ -79,7 +69,6 @@ get_argv0(const wchar_t *argv0)
7969 return buffer;
8070 }
8171
82- #ifdef PYTHON_UWP_SUPPORTED
8372 try {
8473 const auto package = winrt::Windows::ApplicationModel::Package::Current ();
8574 if (package) {
@@ -91,7 +80,6 @@ get_argv0(const wchar_t *argv0)
9180 }
9281 catch (...) {
9382 }
94- #endif
9583
9684 if (!installPath.empty ()) {
9785 len = installPath.size () + wcslen (PROGNAME) + 2 ;
You can’t perform that action at this time.
0 commit comments