Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • how to generalize this by changing the line I have specified?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 338
    Answer it

    I have created a SQLite database in a folder which if I move somewhere else from the location which I have specified below is not going to work as only one location is specified in the code not all in general. I cannot use the database after copying it on the desktop as the code contains only one location specified in the line below. How to make this correction so that if I place the folder “Assignment” anywhere in my computer it always work no need to make any changes in the code every time.

    database = r"D:\xyz\pqr\assignment\moviedatabase.db"

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: