Ask Your Question

relative project paths

asked 2022-04-28 04:04:33 -0500

steve1964's avatar

updated 2022-05-05 09:25:27 -0500

Is there a way to create a "portable" project file (.whl) where source file paths are relative? I mean, a way from the Wing IDE since I think it is possible to manually edit the .whl file anche adapt the loc() entries.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-04-28 09:33:23 -0500

The source files in the project should be relative to the Wing .wpr file. Are you running into a case where they're not relative?

edit flag offensive delete link more


Now I have been able to ensure that the source files are relative in the .wpr file. However, the paths in the OS Commands seem constrained to absolute strings. And they are also stored in the .wpr project file. My question now is: is there a way to add custom OS commands with relative Python files?

steve1964's avatar steve1964  ( 2022-04-28 15:24:05 -0500 )edit

Yes the command lines in OS Commands are strings because there isn't a simple way to determine which parts refer to filenames. Environment variables can be used in the command lines for directories in the project -- including the Wing specific names described in

Wingware Support's avatar Wingware Support  ( 2022-04-28 15:49:57 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2022-04-28 04:04:33 -0500

Seen: 133 times

Last updated: May 02 '22