files.write("/proc/info/os", osname) files.write("/proc/info/arch", arch) files.write("/proc/info/os_su", os_user) files.write("/proc/info/os_host", os_user) files.write("/proc/info/inter", interface) files.write("/proc/info/tz", tz) files.write("/proc/info/sweek", sweek) files.write("/proc/info/boot", kernel_file) files.write('/proc/info/py', py) ## @core/dirs ## fhs = control.read_list("/etc/fhs") for i in fhs: if not files.isdir(i) and not files.isfile(i): files.mkdir(i) ## @core/welcome ## if argv[0] == "kernel": print() print("Welcome to " + distro_name + " " + distro_version + " (" + distro_code + ") cloud software.") print() ## @core/issue ## if (argv[0] == "kernel") and files.isfile("/etc/issue"): print() print(files.readall("/etc/issue")) print()
subprocess.call(argsv) elif option == 'ul': print('Downloading the latest repo ... ', end='') pack.download('latest') pack.unpack('/app/cache/gets/latest.pa') print('done') elif option == 'crt': if sys.argv[2:] == []: colors.show('paye', 'fail', 'no inputs.') sys.exit(0) crtype = sys.argv[2] if sys.argv[3:] == []: crname = 'untitled' else: crname = sys.argv[3] if not files.isdir(crname): files.mkdir(crname) if crtype == 'gui': cmd.unzip([res.get('@temp/simple-gui-project.zip'), crname]) elif crtype == 'web': cmd.unzip([res.get('@temp/simple-web-project.zip'), crname]) else: cmd.unzip([res.get('@temp/simple-project.zip'), crname]) else: colors.show("paye", "fail", option + ": option not found.")