LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 03: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, 10:41 PM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,247

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:19 AM
setting the command path shariefbe Linux - Newbie 8 10-20-2009 09:41 AM
Python upgradation,setting compiler $PATH jared78 Linux - Newbie 9 01-20-2006 01:12 AM
setting the path for a command?? arunsri Linux - Software 1 03-13-2005 05:26 AM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 07:10 PM


All times are GMT -5. The time now is 02:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration