Skip to content

Conversation

@richardissuperman
Copy link
Collaborator

Otherwise kernel will be made in the place where you run the command
instead of relative lower layer of the script folder

os.chdir("kernel")
script_dir = os.path.dirname(os.path.abspath(__file__))

kernel_dir = os.path.join(script_dir, "kernel")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, this kernel folder should be created within the build folder, right? You are now creating it inside the repo/ where the launch_script.py stays?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh ok! let me revise.

the core problem of current code is that it uses the current path which triggers the script, so not stable enough.

    Otherwise kernel will be made in the place where you run the command
    instead of relative lower layer of the script folder
@richardissuperman
Copy link
Collaborator Author

@yuqisun change to use build/kernel

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

Labels

cleanup Code cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants