No subject

Moderator: GiD Team

Post Reply
Guest

No subject

Post by Guest »

working directories to contain no spaces in their path, thus circumventing
this problem from the start. I recommend that all people do this because it
is just good practice.

and ?batch.bch? is a relative path, you can set the full path or the current
folder must be path that contain ?batch.bch?


My .bch file is already specified by the full path, I just left it out in
my first email because I knew it wasn't the problem.

e.g. if this file is located in ?C:\temporary file\batch.bch? could use

os.chdir(?C:\\temporary file?)

os.system(command)


In the end I fixed my problem by changing directory to the GiD11 folder and
specifying just gid.exe in my call command. If you do this don't forget to
specify your script path in full.

Thanks again for the help. I hope my followup will be of value to the GiD
community.
Best wishes
Simon

--047d7b6777986ce76404e3480587
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

div dir=3D"ltr"Dear Enrique, brThank you very much for your thoughtful =
response. I think I have fixed the problem with your help but I would like =
to discuss it further in order to help other people who may have similar pr=
oblems in the future. I disagree with some of the things you said. br
brblockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb=
(204,204,204);padding-left:1ex" class=3D"gmail_quote"GiD for Windows doesn=
?t require any environment variable./blockquotedivbrOK thanks.... I&#=
39;m glad I no longer have to worry about that. br
brblockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb=
(204,204,204);padding-left:1ex" class=3D"gmail_quote"The error is that you=
are trying to use as folder separator the characterbr
?/? , but this is for Linux!! for Windows this character must be ?\?/block=
quotedivbrYou are correct that the forward slash is used by Linux and =
the backward slash by Windows but actually Windows has no trouble interpret=
ing both correctly! br
I always use the forward slash in such scripts because it means my scripts =
will also work cross-platform including on my Linux machines. brIf you do=
n't believe me, try replacing some of your backslashes with forward sla=
shes on the Windows command line! :)=A0 br
Also, having to use the backslash when defining paths in Python would be ha=
ssle because, like you said, every single one must be escaped using a doubl=
e slash and could not be simply copied from Windows Explorer, for example. =
br
brblockquote style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb=
(204,204,204);padding-left:1ex" class=3D"gmail_quote"note that gid.exe is =
enclosed with quotes, required in case its path hasbr
spacesbr/blockquotedivbrFrom previous experiences working on these =
types of problems I set up my
working directories to contain no spaces in their path, thus=20
circumventing this problem from the start. I recommend that all people=20
do this because it is just good practice.brbrblockquote style=3D=
"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le=
ft:1ex" class=3D"gmail_quote"
and ?batch.bch? is a relative path, you can set the full path or the curren=
tbr
folder must be path that contain ?batch.bch?/blockquotedivbrMy .bch f=
ile is already specified by the full path, I just left it out in my first e=
mail because I knew it wasn't the problem. brbrblockquote style=3D=
"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le=
ft:1ex" class=3D"gmail_quote"
e.g. if this file is located in ?C:\temporary file\batch.bch? could usebr
br
os.chdir(?C:\\temporary file?)br
br
os.system(command)/blockquotedivbrIn the end I fixed my problem by ch=
anging directory to the GiD11 folder and specifying just gid.exe in my call=
command. If you do this don't forget to specify your script path in fu=
ll. br
brThanks again for the help. I hope my followup will be of value to the G=
iD community. brBest wishesbrSimonbr

--047d7b6777986ce76404e3480587--
Post Reply