Skip to content

Error when compiling in Windows environment #19

@rlpassos

Description

@rlpassos

The ext_modules function returns errors and the compilation is not completed successfully.

Specifically, the error occurs due to the use of "\" in Windows environments insted of "/".

Changing the line:

modules.add(Extension(module_name.replace("/", "."), [file]))

of the ext modules function, in the djcompiler.py file, to

modules.add(Extension(module_name.replace("\\", "."), [file]))

The compilation works fine.

Ideally, it would automatically identify the operating system of the environment and use the corresponding path separator character, \ or /

This is a good and useful project, good job Abdalrahman!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions