Added commandline swtich "--user" for home directory installation when root.
This commit is contained in:
@@ -30,8 +30,9 @@ def _is_root():
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
return ctypes.windll.shell32.IsUserAnAdmin() != 0
|
return ctypes.windll.shell32.IsUserAnAdmin() != 0
|
||||||
|
|
||||||
def main(argv=None):
|
def main(argv=[]):
|
||||||
install_my_kernel_spec()
|
user = '--user' in argv or not _is_root()
|
||||||
|
install_my_kernel_spec(user=user)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main(argv=sys.argv)
|
||||||
|
|||||||
Reference in New Issue
Block a user