Skip to content

Import modules from subdirectories #17

Description

@malt-r

It would be very helpful, if one could import modules from directories. I am currently using Harmony to model programs with some custom modules, which also need tests. I would like to structure the corresponding repository with subdirectories for the custom modules and the tests for the custom modules.

I don't know, if this is currently possible, but I could not find documentation about this. The --module option does not seem to support full filepaths.

The directory setup I have in mind could be like this:

  • main directory
    • main.hny (importing all modules from lib_directory)
    • test_directory
      • test1.hny (importing custom_module1.hny)
      • test2.hny (importing custom_module1.hny and custom_module2.hny)
    • lib_directory
      • custom_module1.hny
      • custom_module2.hny
      • custom_module3.hny

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions