problem with include on windows

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
seanth
Posts: 12
Joined: Thu Feb 08, 2007 12:09 pm

problem with include on windows

Post by seanth »

I am using ContextFree as a graphical backend to visualize some simulations I am running. Things work very well under linux and OSX, and I have started to make sure everything works ok with windows.

I've run into a problem in that the windows ContextFree doesn't seem to recognize a path to a file I want included.

The following works with OSX(gui and headless) and linux (headless):
include ../../../Vida_Data/theFile.cfdg

But the following does not work with windows ContextFree.exe or ContextFreeCLI.exe:
include ..\..\..\Vida_Data\theFile.cfdg

Am I missing something about how windows deals with paths?

seanth
Posts: 12
Joined: Thu Feb 08, 2007 12:09 pm

Re: problem with include on windows

Post by seanth »

A think I have solved the problem. Placing quotes around the path that works for OSX and linux boxes seems to let things work as expected on windows.

-STH

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn »

Include file paths have to be in quotes if the file is in a different directory or if it has spaces in the file name. I forgot to document this.

Post Reply