Last active
July 25, 2016 19:11
-
-
Save zeffii/fb46cd1ce3b51b04bd0f1475a67a82aa to your computer and use it in GitHub Desktop.
qlink for xonsh
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
def qlink(dirname): | |
return r'mklink /d C:\Users\zeffi\Desktop\scripts\addons_contrib\{0} C:\Users\zeffi\Desktop\GITHUB\{0}'.format(dirname).split() | |
# xonsh shell then takes: @(qlink('x_templates')) | |
# this then executes the subprocess mklink | |
# symbolic link created for C:\Users\zeffi\Desktop\scripts\addons_contrib\x_templates <<===>> C:\Users\zeffi\Desktop\GITHUB\x_templates |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment