Top "Module" questions

A logical subdivision of a larger, more complex system.

Why is Python running my module when I import it, and how do I stop it?

I have a Python program I'm building that can be run in either of 2 ways: the first is to call "…

python module python-import
How to make a cross-module variable?

The __debug__ variable is handy in part because it affects every module. If I want to create another variable that …

python module global
ansible : how to pass multiple commands

I tried this: - command: ./configure chdir=/src/package/ - command: /usr/bin/make chdir=/src/package/ - command: /usr/…

module command ansible
Difference between a class and a module

I came from Java, and now I am working more with Ruby. One language feature I am not familiar with …

ruby class module
Import module from subfolder

I want to import subfolders as modules. Therefore every subfolder contains a __init__.py. My folder structure is like this: …

python import module subdirectory
Export multiple classes in ES6 modules

I'm trying to create a module that exports multiple ES6 classes. Let's say I have the following directory structure: my/ └── …

javascript module export ecmascript-6 babeljs
How do I use namespaces with TypeScript external modules?

I have some code: baseTypes.ts export namespace Living.Things { export class Animal { move() { /* ... */ } } export class Plant { photosynthesize() { /* ... */ } } } dog.ts …

javascript module typescript
Android Studio Run/Debug configuration error: Module not specified

I am getting a 'Module not specified' error in my run config. I have no module showing in the drop …

android android-studio module gradle
Best way to load module/class from lib folder in Rails 3?

Since the latest Rails 3 release is not auto-loading modules and classes from lib anymore, what would be the best way …

ruby-on-rails class module autoload ruby-on-rails-3
Module is not available, misspelled or forgot to load (but I didn't)

I am fairly new to angular and using it with JSON api files. TO test, I am trying to use …

javascript json angularjs module angularjs-injector