First time here? Check out the FAQ!
1

relative project paths
 

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
steve1964's avatar
114
steve1964
asked 3 years ago
Wingware Support's avatar
4.3k
Wingware Support
updated 3 years ago

Comments

see more comments

1 Answer

0

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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.3k
Wingware Support
answered 3 years ago
link

Comments

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 (3 years ago)

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 https://wingware.com/doc/proj/variabl...

Wingware Support's avatar Wingware Support (3 years ago)
see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)