Make P1tr independent from the operating system
At the moment all paths in P1tr are Unix-like-
Another option than generalizing the paths is to create a seperate P1tr distribution for windows with corrected paths, but that's not really a great way to solve the whole problem.
A, in my opinion, better approach is creating a function in lib.helpers which takes a list as argument. This list contains all elements of a path. This list can look as follows:
['folder_
If the OS is something else than Windows the function returns a string 'folder_
In lib.plugins.
The config component will need some minor changes in some places to search common places for config files on other operating systems too.
If anyone has something to add feel free to add this to the whiteboard.
Blueprint information
- Status:
- Started
- Approver:
- None
- Priority:
- Medium
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Chris Ortner
- Definition:
- Approved
- Series goal:
- Accepted for 0.1
- Implementation:
- Beta Available
- Milestone target:
- beta
- Started by
- Chris Ortner
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
Currently replacing OS-dependent paths with os.path.
c-ortner
Executable under Windows since revision 133