Skip to content

Commit 3c3919d

Browse files
committed
Set a logical name for the clr.py resource.
1 parent 497b638 commit 3c3919d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/runtime/Python.Runtime.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@
183183
<None Include="x86\clrmodule-platform.il" />
184184
</ItemGroup>
185185
<ItemGroup>
186-
<EmbeddedResource Include="resources\clr.py" />
186+
<EmbeddedResource Include="resources\clr.py">
187+
<LogicalName>clr.py</LogicalName>
188+
</EmbeddedResource>
187189
</ItemGroup>
188190
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
189191
<ProjectExtensions>

src/runtime/pythonengine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static void Initialize() {
159159
Runtime.PyDict_SetItemString(module_globals, "__builtins__", builtins);
160160

161161
var assembly = Assembly.GetExecutingAssembly();
162-
using (Stream stream = assembly.GetManifestResourceStream("Python.Runtime.resources.clr.py"))
162+
using (Stream stream = assembly.GetManifestResourceStream("clr.py"))
163163
using (StreamReader reader = new StreamReader(stream))
164164
{
165165
// add the contents of clr.py to the module

0 commit comments

Comments
 (0)