
from docopt import docopt
import colorama
from colorama import Fore

from foliant import builder, uploader
from foliant import __version__ as foliant_version


def main():
    """Handles command-line params and runs the respective core function."""

    colorama.init(autoreset=True)

    args = docopt(__doc__, version="Foliant %s (Python)" % foliant_version)

    if args["build"] or args["make"]:
        result = builder.build(args["<target>"], args["--path"])

    elif args["upload"] or args["up"]:
        result = uploader.upload(args["<document>"])

    print("---")
    print(Fore.GREEN + "Result: %s" % result)

    colorama.deinit()


from docopt import docopt
import colorama
from colorama import Fore

from . import builder, uploader
from . import __version__ as foliant_version


def main():
    """Handles command-line params and runs the respective core function."""

    colorama.init(autoreset=True)

    args = docopt(__doc__, version="Foliant %s (Python)" % foliant_version)

    if args["build"] or args["make"]:
        result = builder.build(args["<target>"], args["--path"])

    elif args["upload"] or args["up"]:
        result = uploader.upload(args["<document>"])

    print("---")
    print(Fore.GREEN + "Result: %s" % result)

    colorama.deinit()

Replace hardcoded package name with ".".
CLI: Replace hardcoded package name with ".".

  
  from docopt import docopt
  import colorama
  from colorama import Fore
  
- from foliant import builder, uploader
+ from . import builder, uploader
- from foliant import __version__ as foliant_version
+ from . import __version__ as foliant_version
  
  
  def main():
      """Handles command-line params and runs the respective core function."""
  
      colorama.init(autoreset=True)
  
      args = docopt(__doc__, version="Foliant %s (Python)" % foliant_version)
  
      if args["build"] or args["make"]:
          result = builder.build(args["<target>"], args["--path"])
  
      elif args["upload"] or args["up"]:
          result = uploader.upload(args["<document>"])
  
      print("---")
      print(Fore.GREEN + "Result: %s" % result)
  
      colorama.deinit()
  
Replace hardcoded package name with ".".
## Code Before:

from docopt import docopt
import colorama
from colorama import Fore

from foliant import builder, uploader
from foliant import __version__ as foliant_version


def main():
    """Handles command-line params and runs the respective core function."""

    colorama.init(autoreset=True)

    args = docopt(__doc__, version="Foliant %s (Python)" % foliant_version)

    if args["build"] or args["make"]:
        result = builder.build(args["<target>"], args["--path"])

    elif args["upload"] or args["up"]:
        result = uploader.upload(args["<document>"])

    print("---")
    print(Fore.GREEN + "Result: %s" % result)

    colorama.deinit()

## Instruction:
Replace hardcoded package name with ".".
## Code After:

from docopt import docopt
import colorama
from colorama import Fore

from . import builder, uploader
from . import __version__ as foliant_version


def main():
    """Handles command-line params and runs the respective core function."""

    colorama.init(autoreset=True)

    args = docopt(__doc__, version="Foliant %s (Python)" % foliant_version)

    if args["build"] or args["make"]:
        result = builder.build(args["<target>"], args["--path"])

    elif args["upload"] or args["up"]:
        result = uploader.upload(args["<document>"])

    print("---")
    print(Fore.GREEN + "Result: %s" % result)

    colorama.deinit()
