How to combine long path and file for import()

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to combine long path and file for import()

Peter Ragosch
Hallo everyone,

long time ago I could feed a long path into variable path="/long/path/"
and the file name into variable file="myFile.dxf" for contaminated use
in import{_dxf}(). But I can't remember how I did that.

Any help is highly appreciated.

--
Mit freundlichen Grüßen
Best Regards

Peter Ragosch


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: How to combine long path and file for import()

nophead
This should work.
 
import(str(path, file));

On Fri, 2 Aug 2019 at 16:15, Peter Ragosch <[hidden email]> wrote:
Hallo everyone,

long time ago I could feed a long path into variable path="/long/path/"
and the file name into variable file="myFile.dxf" for contaminated use
in import{_dxf}(). But I can't remember how I did that.

Any help is highly appreciated.

--
Mit freundlichen Grüßen
Best Regards

Peter Ragosch


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: How to combine long path and file for import()

Peter Ragosch
Indeed!

Thank you very much.

Am Fri, 2 Aug 2019 17:15:14 +0100
schrieb nop head <[hidden email]>:

> This should work.
>
> import(str(path, file));
>
> On Fri, 2 Aug 2019 at 16:15, Peter Ragosch
> <[hidden email]> wrote:
>
> > Hallo everyone,
> >
> > long time ago I could feed a long path into variable
> > path="/long/path/" and the file name into variable
> > file="myFile.dxf" for contaminated use in import{_dxf}(). But I
> > can't remember how I did that.
> >
> > Any help is highly appreciated.
> >
> > --
> > Mit freundlichen Grüßen
> > Best Regards
> >
> > Peter Ragosch
> >
> >
> > _______________________________________________
> > OpenSCAD mailing list
> > [hidden email]
> > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
> >

--
Mit freundlichen Grüßen
Best Regards

Peter Ragosch


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org