question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implicitly create project when launched with a folder path as argument

See original GitHub issue

It would be really nice if I could load Spyder from the CLI when I am in a directory, with the contents of that directory, by running spyder . (or spyder /home/akdor1154/src/project, etc). AFAICT wiith Spyder’s project model, this would require Spyder to

  • check if a project exists for that directory (i guess this already happens)
  • if not, create a new one
  • open said project.

I guess an implementation of this would be quite simple, would you accept a PR to that effect?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Jan 23, 2020

If VSCode and Sublime do the same as us, then I’d be happy a PR to add support to create a new project with -p if none is present in the directory passed to it.

0reactions
akdor1154commented, Jan 28, 2020

awesome, thanks for your consideration 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 8 – Reading and Writing Files
The path specifies the location of a file on the computer. For example, there is a file on my Windows 7 laptop with...
Read more >
File path formats on Windows systems | Microsoft Learn
A relative path to a file in a directory starting from the current directory. C:\Projects\apilibrary\apilibrary.sln, An absolute path to a file ...
Read more >
Working With Files - Gradle User Manual
The Project.file(java.lang.Object) method is used to create a file or directory path relative to the current project and is a common way to...
Read more >
python - How to reliably open a file in the same directory as ...
I always use: __location__ = os.path.realpath( os.path.join(os.getcwd(), os.path.dirname(__file__))). The join() call prepends the current working directory ...
Read more >
Channels — Nextflow 22.10.2 documentation
A value channel is implicitly created by a process when it is invoked with a ... The first example will return all directory...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found