Check if Python Package is installed

If you mean a python script, just do something like this: Python 3.3+ use sys.modules and find_spec: import importlib.util import sys # For illustrative purposes. name=”itertools” if name in sys.modules: print(f”{name!r} already in sys.modules”) elif (spec := importlib.util.find_spec(name)) is not None: # If you choose to perform the actual import … module = importlib.util.module_from_spec(spec) sys.modules[name] … Read more

Javascript to detect Skype?

Thanks for the answers everyone: from the links and methods seanb and some posted, I was able to come up with a solution which works for IE and Firefox, so I thought I’d post a ‘complete’ answer. Here it is as a handy jQuery extension! The jQuery Extension jQuery.extend({ skype : function(failureFunction) { var $ … Read more

Launch Skype from an App Programmatically & Pass Number – Android

This code works for me to start a call between two Skype users: Intent sky = new Intent(“android.intent.action.VIEW”); sky.setData(Uri.parse(“skype:” + user_name)); startActivity(sky); To find this (and others), use apktool to open up the Skype APK. Look at the AndroidManifest.xml and you’ll see all the intent filters they know about. If you want to trigger one … Read more