Skip to content

Commit 78e5dfa

Browse files
FIRST_NAME LAST_NAMEFIRST_NAME LAST_NAME
authored andcommitted
Move pkl to __communication.
1 parent fcf425a commit 78e5dfa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

robloxpyc/__communication__/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Info
22
This folder is to be ignored as it holds just random files used to hold configuration and bindings
3-
between Python and TS
3+
between Python and TS.
File renamed without changes.

robloxpyc/configmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CONFIG
22
# CFG will be in the same directory as this file
33
import pickle, os
4-
cfgPath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "cfg.pkl")
4+
cfgPath = os.path.join(os.path.dirname(os.path.realpath(__file__)), "__communication__/cfg.pkl")
55
def getconfig(arg1, arg2, default="None"):
66
try:
77
# Load the config file if it exists, or create a new one if it doesn't

robloxpyc/installationmanager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ def check_for_updates():
6262
script_dir = os.path.dirname(os.path.realpath(__file__))
6363
returnval = ""
6464
try:
65-
with open(os.path.join(script_dir, "cfg.pkl"), "rb") as file:
65+
with open(os.path.join(script_dir, "__communication__/cfg.pkl"), "rb") as file:
6666
returnval = file.read()
6767
except:
6868
print(error("Failed to safe-update, data is corrupted. Would you like to force-update, you may lose configuration data.", "auto-updater"))
6969
choice = input("\t\tDo you want to force-update? (yes/no): ").lower()
7070
if not choice == "yes":
7171
sys.exit()
7272
subprocess.run(["pip", "install", f"roblox-pyc=={latest_version}"])
73-
with open(os.path.join(script_dir, "cfg.pkl"), "wb") as file:
73+
with open(os.path.join(script_dir, "__communication__/cfg.pkl"), "wb") as file:
7474
file.write(returnval)

0 commit comments

Comments
 (0)