Skip to content

@import full path in windows os broken #538

Open
@franmastromarino

Description

@franmastromarino

hello

I'm trying to use the full path in the import statements

this is the .less file:

@import "@{stylesheet_path}colors.less";
@import "@{template_path}liquida/etc.less";

i set the variables via php and i tried with

$test = strtr(realpath(dirname($output)), '', '/');

$test = realpath(dirname($output));

$test = dirname($output);

    $less->setVariables(array(
        'stylesheet_path'   => "'". $test ."/'",
        'template_path'     => "'". $test ."/'",
        'stylesheet_url'    => "'". $test ."/'",
        'template_url'      => "'". $test ."/'",
    ));

but less files are not imported & the output is allways the string of the folder

@import "C:/wamp/www/wordpress/wp-content/uploads/liquida/css/colors.less";
@import "C:/wamp/www/wordpress/wp-content/uploads/liquida/css/liquida/functions.less";

i think we have an issue here, or im doing something wrong ?

thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions