Skip to content

Commit 329c9be

Browse files
simonhughxyzpvsr
andauthored
Handle backslashes in sourcing config (#36)
* fix: handle backslashes in sourcing config Use string literals to handle backslashes. * source extra config files as raw strings too --------- Co-authored-by: Peter Rice <[email protected]>
1 parent f368a76 commit 329c9be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qbpm/profiles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ def create_config(
7474
if home_page:
7575
out(f"c.url.start_pages = ['{home_page}']")
7676
main_config_dir = user_config_dir()
77-
out(f"config.source('{main_config_dir / 'config.py'}')")
77+
out(f"config.source(r'{main_config_dir / 'config.py'}')")
7878
for conf in main_config_dir.glob("conf.d/*.py"):
79-
out(f"config.source('{conf}')")
79+
out(f"config.source(r'{conf}')")
8080

8181

8282
application_dir = Path(BaseDirectory.xdg_data_home) / "applications" / "qbpm"

0 commit comments

Comments
 (0)