Skip to content

Commit

Permalink
✨: add engine text to resources, make public
Browse files Browse the repository at this point in the history
  • Loading branch information
frissyn committed Nov 3, 2021
1 parent 8b9c3e1 commit e9d5302
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion reflux/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from reflux.theme import Theme

__all__ = ["Theme"]
from reflux.resources import shelf as Resources

__all__ = ["Theme", "Resources"]
__author__ = "frissyn"
__version__ = "1.0.1"
__doc__ = "Python package for generating IDE themes on Replit"
6 changes: 4 additions & 2 deletions reflux/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ def __init__(self):

if file.is_file() and file.name.endswith(".txt"):
contents = open(file).read()
jar = self.create_var_jar(contents)
jar = self._create_var_jar(contents)

jar["_keys"] = list(jar.keys())

self.__setattr__(name, jar)

self.engine = "javascript:" + open(f"{path}/../engine/reflux.min.js").read()

def create_var_jar(self, contents: str):
def _create_var_jar(self, contents: str):
jar = {}

for line in contents.split(";\n"):
Expand Down

0 comments on commit e9d5302

Please # to comment.