GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — ACPL/setup.py at master · megat69/ACPL Expand file tree/ Copy pathsetup.pyMore file actions 69 lines (53 loc) · 2.66 KB / Copy pathsetup.pyFile metadata and controls69 lines (53 loc) · 2.66 KB 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 import os from time import sleep from recurrent_classes import launch_py_file os.system("pip install -r --upgrade requirements.txt") startup_file = open("startup.acpl-ini", "r", encoding="utf-8") startup_options = startup_file.readlines() startup_file.close() print("\n\n\nHello !\nLet's begin with a quick setup of your settings.") language = input("What language do you speak, from this list ? Type in the country code between parentheses.\n" "- Azerbaijani (az)\n" "- German (de)\n" "- English (en)\n" "- French (fr)\n" "- Italian (it)\n" "- Dutch (nl)\n" "- Turkish (tr)\n" "Type here : ") if language not in ("az", "de", "en", "fr", "nl", "it", "tr"): language = "en" print(f"Ok, I configured your language to '{language}'.\nBut for now, the setup has to be in English (sorry).") sleep(1) use_colors = input("\033[93mDo you see weird characters at the beginning and the end of that sentence ? (yes/no) \033[0m") if use_colors.lower() == "yes": use_colors = "False" else: use_colors = "True" sleep(1) open_compiled_file = input("The ACPL has the ability to compile ACPL files into Python files.\nAt the end of a compilation, do you want the ACPL interpreter to automatically open the file in your favourite text editor ? (yes/no) ") open_compiled_file = f"{open_compiled_file.lower() == 'yes'}" sleep(1) leave_comments_at_compiling = input("During compilation, do you want the comments you wrote in the ACPL file to be transcripted in the Python file ? (yes/no) ") leave_comments_at_compiling = f"{leave_comments_at_compiling.lower() == 'yes'}" sleep(1) print("Okay, you completed the setup :)\n\nKeep in mind that you can modify any of them using the 'settings' console command.") for i in range(len(startup_options)): if startup_options[i].startswith("lang"): startup_options[i] = f"lang: {language}\n" elif startup_options[i].startswith("use-colors"): startup_options[i] = f"use-colors: {use_colors}\n" elif startup_options[i].startswith("open-compiled-file"): startup_options[i] = f"open-compiled-file: {open_compiled_file}\n" elif startup_options[i].startswith("leave-comments-at-compiling"): startup_options[i] = f"leave-comments-at-compiling: {leave_comments_at_compiling}\n" startup_file = open("startup.acpl-ini", "w", encoding="utf-8") startup_file.writelines(startup_options) startup_file.close() try: os.mkdir("acpl_libs") except FileExistsError: pass sleep(2) print("I open you the console :)") launch_py_file("console") |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |