How do I get the path of the current executed file in Python?

This may seem like a newbie question, but it is not. Some common approaches don’t work in all cases: sys.argv[0] This means using path = os.path.abspath(os.path.dirname(sys.argv[0])), but this does not work if you are running from another Python script in another directory, and this can happen in real life. __file__ This means using path = … Read more

Android SDK manager won’t open

This question’s answers are a community effort. Edit existing answers to improve this post. It is not currently accepting new answers or interactions. So I installed the android sdk for Windows: http://developer.android.com/sdk/index.html (the installation link) And ran into the path variable problem. So I fixed that by changing “PATH” in enviroment variables to include where … Read more

How to create multiple output paths in Webpack config

Does anyone know how to create multiple output paths in a webpack.config.js file? I’m using bootstrap-sass which comes with a few different font files, etc. For webpack to process these i’ve included file-loader which is working correctly, however the files it outputs are being saved to the output path i specified for the rest of … Read more