Compare commits
No commits in common. "4343da522eea704c1d14b9d43ae6419ae1131168" and "84dbb8202eae13d91c19bea4949605c3fd354c45" have entirely different histories.
4343da522e
...
84dbb8202e
|
@ -410,7 +410,7 @@ Section 8 -- Interpretation.
|
||||||
Creative Commons is not a party to its public
|
Creative Commons is not a party to its public
|
||||||
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
||||||
its public licenses to material it publishes and in those instances
|
its public licenses to material it publishes and in those instances
|
||||||
will be considered the "Licensor." The text of the Creative Commons
|
will be considered the “Licensor.” The text of the Creative Commons
|
||||||
public licenses is dedicated to the public domain under the CC0 Public
|
public licenses is dedicated to the public domain under the CC0 Public
|
||||||
Domain Dedication. Except for the limited purpose of indicating that
|
Domain Dedication. Except for the limited purpose of indicating that
|
||||||
material is shared under a Creative Commons public license or as
|
material is shared under a Creative Commons public license or as
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import webbrowser
|
import webbrowser
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
import os
|
|
||||||
import markdown
|
import markdown
|
||||||
import navpoint.fix_path
|
import navpoint.fix_path
|
||||||
|
|
||||||
|
@ -20,10 +19,7 @@ def about():
|
||||||
with open(navpoint.fix_path.fix_path("CC-BY-SA-4.0.txt")) as f:
|
with open(navpoint.fix_path.fix_path("CC-BY-SA-4.0.txt")) as f:
|
||||||
cc = f.read()
|
cc = f.read()
|
||||||
|
|
||||||
fd, name = tempfile.mkstemp(suffix=".html")
|
with tempfile.NamedTemporaryFile("w+") as f:
|
||||||
os.close(fd)
|
|
||||||
|
|
||||||
with open(name, "w") as f:
|
|
||||||
f.write(
|
f.write(
|
||||||
f"""\
|
f"""\
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -43,7 +39,6 @@ def about():
|
||||||
</html>
|
</html>
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
f.flush()
|
||||||
webbrowser.open(name)
|
webbrowser.open(f.name)
|
||||||
time.sleep(0.5) # Give the browser time to open the file
|
time.sleep(0.5) # Give the browser time to open the file
|
||||||
os.remove(name)
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user