Python Forum
Can anyone help me successfully run this code?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can anyone help me successfully run this code?
#9
(Aug-17-2023, 02:50 PM)TheMouseAvenger Wrote: C:\Users\User\Desktop\the-great-suspender-restore-urls-0.4, how should I specifically type/input those specific file names & folder paths into the code?
You give path to where file is,so my Windows User name is Tom.
# Activate 
G:\div_code\suspender_env
λ G:\div_code\suspender_env\Scripts\activate

# Now give path to file rand.json
(suspender_env) G:\div_code\suspender_env
λ restore-the-great-suspender-urls --in-file=C:/Users/Tom/Desktop/rand.json --out-file=C:/Users/Tom/Desktop/jsontabs-restored.json
Output:
Tested <jsontabs-restored.json> works
It's easier when work with CLI tool if navigate to folder where filers are,and i would not use Desktop for this at all,make your own folder as advised.
With simpler path eg C:\div_code
Here a demo on navigate to a folder,now don't have to give path
(suspender_env) G:\div_code\suspender_env
λ c:

(suspender_env) C:\Users\Tom
λ cd ..

(suspender_env) C:\Users
λ cd ..

# If start for root C:
(suspender_env) C:\
λ cd Users\tom\Desktop

# Now in Desktop folder
(suspender_env) C:\Users\Tom\Desktop
λ restore-the-great-suspender-urls --in-file=rand.json --out-file=tabs-restored.json
Reply


Messages In This Thread
RE: Can anyone help me successfully run this code? - by snippsat - Aug-17-2023, 04:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how do I successfully use PDO with my ODBC for MSSQL? cyberion1985 3 6,702 Jun-26-2018, 04:44 PM
Last Post: Maverick494
  Cannot successfully install NumPy aniketmone2017 3 7,449 Dec-29-2016, 02:14 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020