Skip to main content

This module transfers the import path to the project root so you can easily import from neighboring folders.

Project description

This module transfers the import path to the project root so you can easily import from neighboring folders.

how to use:

from superMagIcmporter import set_root_folder

set_root_folder(file,'yourRootFolder')

Args Description
file "The file parameter provides the current file's path to the function, allowing it to resolve the path to your desired root directory. By passing the file magic variable, the current script's location is automatically set."
root_folder_name Enter the name of your project's root folder as a string.

The set_root_folder function stores the input folder in Python memory. Note: From this line onwards, you must specify the root address to import from. If you need to use Python's own installed import, you must do so before setting with this module.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supermagicmporter-0.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

supermagicmporter-0.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file supermagicmporter-0.0.2.tar.gz.

File metadata

  • Download URL: supermagicmporter-0.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for supermagicmporter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e16b05bf0173de3df48d1e65e78226a268be3817b8fd085294545cca4b87c1ad
MD5 59a10086d1f2461479e36a60a679389f
BLAKE2b-256 fc38256d3396e6b8b169288983bc2e20d65c59c6c1a0ebf6254277c835b757da

See more details on using hashes here.

File details

Details for the file supermagicmporter-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for supermagicmporter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 866c8aad64e52c38d76b7e6f8a9360ff8a9deff40f3129eeea30ac877adeb707
MD5 a23f0322102c57040544b9312ac27992
BLAKE2b-256 ca34dfbb31f63eff3ba944f72188fdaa50c96ffbcad2ec9ca282b885887d6eea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page