Got this code in C#:
using System;
public class Listener{
public static void Main(){
Console.WriteLine("Hello world...");
Console.ReadLine();
}
}
Tried to translate it to IronPython and compile it by ipy pyc.py /main:Listener.py Listener.py /target:exe:
from System import *
class Listener:
def Main(self):
Console.WriteLine("Listening")
Console.ReadLine()
When I try to run it by ipy or directly the exe, nothing happens.
What is the problem?