LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2011, 02:12 PM   #1
LavaLampMaster
LQ Newbie
 
Registered: Oct 2011
Posts: 1

Rep: Reputation: Disabled
Setting path in using python command


Something obvious is escaping me,

The python exec file I'm using saves its data to the working directory, but the executable is in a different folder. I'm setting my working directory to Desktop/logdata, and tried

Code:
me@ubuntu:~/logdata$ python /home/Desktop/<pyfile path>
What should I do?
 
Old 10-24-2011, 09:41 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Why not just cd to that directory and then execute python interactive shell?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Command path is in PATH but bash does not find the command. stf92 Linux - Newbie 17 03-23-2012 04:19 AM
setting the command path shariefbe Linux - Newbie 8 10-20-2009 08:41 AM
Python upgradation,setting compiler $PATH jared78 Linux - Newbie 9 01-20-2006 12:12 AM
setting the path for a command?? arunsri Linux - Software 1 03-13-2005 04:26 AM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration