Skip to content

Instantly share code, notes, and snippets.

@Atlas48
Created February 24, 2020 17:32
Show Gist options
  • Save Atlas48/605aca53d51771dac163027235de9f9b to your computer and use it in GitHub Desktop.
Save Atlas48/605aca53d51771dac163027235de9f9b to your computer and use it in GitHub Desktop.
(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