core default script start position
"""
Copyright (C) 2020 New Entity Operations Inc.
ALL RIGHTS RESERVED
core_build reads system resources and makes determinations about build or
system choice made by the operator.
_build also establishes the 'CORE_DIR' which can be linked to for expanded
emulator functions and text-mode searching
"""
## Imports: Standard
from sys import (
copyright, platform
)
## Imports: Custom
from core_middlelayer import (
DIRDATA,
STRUCTURE
)
## Define the relative position for the program
CORE_DIR = '.'
STRUCTURE = DIRDATA+STRUCTURE
## Platform check
class SystemPlatform:
"""
SystemPlatform class to check for a known system platform type
If no known platform-type is found, 'Unknown System is returned
"""
def get_platform():
# START: STEP 5 - Enable system programs
print(
"---------- START: STEP 5 - Enable system programs ----------"
)
if platform == 'win32':
print('Windows 32-bit Platform')
elif platform == 'win64':
print('Windows 64-bit Platform')
elif platform.startswith('darwin'):
print('macOS Darwin Build Platform')
elif platform.startswith('linux'):
print('Linux Platform')
elif platform.startswith('freebsd'):
print('FreeBSD Platform')
elif platform.startswith('aix'):
print('AIX Platform')
elif platform.startswith('cygwin'):
print('Windows CYGWIN Platform')
elif platform.startswith('entity'):
print('Entity-centric System Platform')
else:
print('Unknown System')
print(
"---------- STOP: STEP 5 - Enable system programs ----------\n"
)
# STOP: STEP 5
# Display the default Python copyright information
class DisplayImplementationLanguageCopyright:
"""
Display the 'ImplementationLanguageCopyright'
Whatever you're building out with, if it requries a copyright notice,
you may push it out here in an automated routine.
z = copyright is set to display the default python copyright
If you would like, add more languages and their if you intend
to redistribute the program as a collected resource,
tie each resource copyright in as z1, z2, z3, etc. and provide a
lookup routine to access it.
"""
def information():
z = copyright
print(
"----- PYTHON COPYRIGHT INFORMATION ----- "
)
print(copyright)
# DisplayCopyright.information()
Return HOME