I have a python code that is taking some info from a website by selenium and then write them into a json file, after I created an '.exe' file by pyinstaller and run it I don't know where this json file is saved.
Where could be saved, should be in the initial directory?
Related
I am working on an Informatica workflow and using Teradata Database. The file is a .txt file.
When I run the workflow I get the error message below.
Error opening file [/infa_shared/uss/SrcFiles/vnd_MG//PRx]. Operating system error message [no such file or directory].
I have an unzip session in the sessions.
You can always use a command task to execute the unzip explicitly.
If your file name is PRx.txt, then the command line of the task will be:
unzip /infa_shared/uss/SrcFiles/vnd_MG//PRx.txt
Then in the next connected session, associate the source file with the filename you have extracted from your .txt archive - in your session's mapping setting.
my Python project works in editor. I get .exe output from Python (.py) program. The .exe file could not understand the path of the files.
import os
a = os.getcwd() + "\\Logs\\" # Find the log directory
# Read the text in the Paths.txt file inside the logs directory
b = open (a + "Paths.txt", "r").read()
When the code is executed in the editor, the text inside the file is read and the file path is understood. But when executing the .exe file, the program can not detect the path of the log file.
Log file path at runtime (in editor or .py): currect and understood
'C:\\Users\\mohammad\\Desktop\\projects\\Logs\\Paths.txt'
Log file path at runtime (in .exe file): not currect
'C:\\Users\\mohammad\\Desktop\\projects\\dist\\Logs\\Paths.txt'
I tried some methods such as short route but it did not work.
Also, due to my problems, I output Python file as follows:
pyinstaller.exe --onefile --add-binary "C:\\Users\\mohammad\\Desktop\\projects\\pythoncom310.dll\\;." Start.py
And i'm using version 3.9 of Python and the VScode editor. Thanks for your time
How to convert .py file into standalone exe file for python3.6, please explain with examples
Please explain it with some examples to make setup.py file, so that I can execute any text file called in python script and save the output in csv file by calling the csv file.
There is a CSV file called orders_data stored in my system, but when I try to load this file in Julia using readdlm command in Jupyter Notebook(running in my browser), it says "NO SUCH FILE DIRECTORY FOUND"
I'm not sure why does this happen? is there a specific location where the files need to be stored to be accessed using Julia command? is it that I need to install some packages first to load the file using browser version of jupyter?
//Error information
SystemError: opening file orders_data.csv: No such file or directory
Your working directory is set to your current location when you start a Julia session. You can see what it is by calling the pwd() function. You can change it by calling the cd() function. Unless you specify otherwise, or provide a more complete pathname, Julia looks for files in your current working directory (although it's different for modules).
I have an issue that I want to read a DOC file in my system but the condition is
Suppose you are working on browser and download some PDF or DOC file ,then my program should run and get the path of that file and convert that doc file in binary format.
the file download path may be change because some time it download in default folder but some times you saves that file in other locations.
my concern is this that code should execute at download time and should get file path from download history and read that file.