FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonnet/ConsoleApp1/Program.cs at fast-call · linGithubName/pythonnet · GitHub
linGithubName
pythonnet
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonnet
/
ConsoleApp1
/
Program.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (32 loc) · 750 Bytes
Breadcrumbs
pythonnet
/
ConsoleApp1
/
Program.cs
Copy path
File metadata and controls
35 lines (32 loc) · 750 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using
Python
.
Runtime
;
using
System
;
using
System
.
Collections
.
Generic
;
using
System
.
Linq
;
using
System
.
Text
;
namespace
ConsoleApp1
{
class
Program
{
static
void
Main
(
string
[
]
args
)
{
Python
.
Runtime
.
PythonEngine
.
Initialize
(
)
;
try
{
string
[
]
cmd
=
Environment
.
GetCommandLineArgs
(
)
;
Runtime
.
Py_Main
(
cmd
.
Length
,
cmd
)
;
// using (var ps = Py.CreateScope())
// {
// ps.Exec(@"
//import sys
//sys.path.append('I:/Projects/pythonnet_1/src')
//import asd
//");
// }
}
finally
{
Python
.
Runtime
.
PythonEngine
.
Shutdown
(
)
;
}
}
}
}
Back
|
FazBrowse Home
|
New Git URL