Created
February 24, 2020 17:32
-
-
Save Atlas48/605aca53d51771dac163027235de9f9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import [sys [argv]]) | |
(import [sys.stdout [write :as eprint]]) | |
(import [os.path [basename]]) | |
(try | |
(import toml) | |
(except ImportError | |
(eprint "looks like toml wasn't found"))) | |
(setv map {:InternetShortcut :URL (get 1 argv)}) | |
(with [f (open (basename (get 1 argv)))] | |
(.write f (.dumps toml map))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment