WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 1.6% of users enabled 2FA.

Commit 8831585b authored by Stefan Marr's avatar Stefan Marr
Browse files

Added get_interpreter and usage printing



- universe should be more or less complete now
Signed-off-by: default avatarStefan Marr <git@stefan-marr.de>
parent 880adac3
...@@ -71,6 +71,9 @@ class Universe(object): ...@@ -71,6 +71,9 @@ class Universe(object):
def metaclassClass(self): def metaclassClass(self):
return self._metaclassClass return self._metaclassClass
def get_interpreter(self):
return self._interpreter
def execute_method(self, class_name, selector): def execute_method(self, class_name, selector):
self._initialize_object_system() self._initialize_object_system()
...@@ -180,6 +183,18 @@ class Universe(object): ...@@ -180,6 +183,18 @@ class Universe(object):
(path, file_name) = os.path.split(path) (path, file_name) = os.path.split(path)
(file_name, ext) = os.path.splitext(file_name) (file_name, ext) = os.path.splitext(file_name)
return (path, file_name, ext[1:]) return (path, file_name, ext[1:])
def _print_usage_and_exit(self):
# Print the usage
self.std_println("Usage: som [-options] [args...] ")
self.std_println(" ")
self.std_println("where options include: ")
self.std_println(" -cp <directories separated by " + os.pathsep + ">")
self.std_println(" set search path for application classes")
self.std_println(" -d enable disassembling")
# Exit
self.exit(0)
def _initialize_object_system(self): def _initialize_object_system(self):
# Allocate the nil object # Allocate the nil object
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment