Skip to content
/ smuggle Public

Python library for importing a module without changing sys.path

License

Notifications You must be signed in to change notification settings

wingu/smuggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

smuggle allows you to import a python module from a specific path, without making a permananent modification to sys.path. (It imports something secretly... by smuggling... is what we're saying)

Why would you want to do such a thing?

Because sometimes, just sometimes, as part of your deploy/testing/etc, you're going to have separate chunks of code you need to pull together, but full modifications to sys.path would result in painful conflicts.

Is this a sign that your code isn't perfectly organized?

Yes.

Do such things happen in the Real World, and thus justify the occasional odd hack?

Also, yes.

About

Python library for importing a module without changing sys.path

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages