Skip to content

Commit

Permalink
Will reorganize utils module
Browse files Browse the repository at this point in the history
  • Loading branch information
István Bozsó committed Jan 22, 2020
1 parent 57b6f6f commit dd4c4d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion html/prez.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ a = h.html {
h.div {
class = "class",
h.p "Hello",
h.p "Hello"
h.p "Hello",
h.p[[
Hello
aaaa
bbb
]]
},

h.header{
Expand Down
5 changes: 5 additions & 0 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,3 +1063,8 @@ def proc_define(elem):
def reext(path, ext):
return pth.splitext(path)[0] + ext


from importlib.machinery import SourceFileLoader

def load(name, path):
return SourceFileLoader(name, path).load_module()

0 comments on commit dd4c4d4

Please sign in to comment.