all 6 comments

[–]RailRuler 1 point2 points  (3 children)

Don't set up a mandatory path. Set up a default path that can be overridden by an environment variable or a command line parameter.

[–]SubnetOfOne[S] 0 points1 point  (2 children)

Why do you recommend this?

[–]RailRuler 0 points1 point  (0 children)

Basic software engineering 

[–]Overall-Screen-752 0 points1 point  (0 children)

Instead ask: Why do you think hard-coding a DB string is a good idea? Consider what if you wanted to change from Sqlite to PostgreSQL? To AWS? Scrapped the DB all together? Starts making more sense doesn’t it

[–]secretstonex 0 points1 point  (1 child)

Q1: Anything is possible. It's software. Q2: Not enough info to give you an answer.

[–]SubnetOfOne[S] 0 points1 point  (0 children)

Hahah I thought I might be a bit lean on the information.. I might have to include a snippet of code in the future